diff --git a/examples/dynamic-overwrite-endpoint.js b/examples/dynamic-overwrite-endpoint.js
index 257738ad..2716d2f6 100644
--- a/examples/dynamic-overwrite-endpoint.js
+++ b/examples/dynamic-overwrite-endpoint.js
@@ -55,7 +55,7 @@ fastify.register(async function (fastify) {
         }
       }
     }
-  }, (req, reply) => {})
+  }, () => {})
 })
 
 fastify.listen({ port: 3000 }, err => {
diff --git a/examples/json-in-querystring.js b/examples/json-in-querystring.js
index c7cd8660..5fd078cb 100644
--- a/examples/json-in-querystring.js
+++ b/examples/json-in-querystring.js
@@ -23,7 +23,7 @@ const fastify = require('fastify')({
 
 ajv.addKeyword({
   keyword: 'x-consume',
-  code: (ctx) => Promise.resolve(true)
+  code: () => Promise.resolve(true)
 })
 
 fastify.setValidatorCompiler(({ schema }) => ajv.compile(schema))
@@ -67,6 +67,6 @@ fastify.register(async function (fastify) {
   })
 })
 
-fastify.listen({ port: 3000 }, (err, addr) => {
+fastify.listen({ port: 3000 }, (err) => {
   if (err) throw err
 })
diff --git a/test/spec/openapi/refs.js b/test/spec/openapi/refs.js
index 5cd7cd83..27c91458 100644
--- a/test/spec/openapi/refs.js
+++ b/test/spec/openapi/refs.js
@@ -296,7 +296,7 @@ test('uses examples if has property required in body', async (t) => {
         }
       }
     }
-  }, (req, reply) => ({ result: 'OK' }))
+  }, () => ({ result: 'OK' }))
 
   await fastify.ready()
 
diff --git a/test/types/http2-types.test.ts b/test/types/http2-types.test.ts
index ea875a7a..d8311c66 100644
--- a/test/types/http2-types.test.ts
+++ b/test/types/http2-types.test.ts
@@ -28,7 +28,7 @@ app.put('/some-route/:id', {
     summary: 'qwerty',
     security: [{ apiKey: [] }]
   }
-}, (req, reply) => {})
+}, () => {})
 
 app.get('/public/route', {
   schema: {
@@ -36,7 +36,7 @@ app.get('/public/route', {
     summary: 'qwerty',
     security: []
   }
-}, (req, reply) => {})
+}, () => {})
 
 app
   .register(fastifySwagger, {
diff --git a/test/types/types.test.ts b/test/types/types.test.ts
index 29708011..b5b4f260 100644
--- a/test/types/types.test.ts
+++ b/test/types/types.test.ts
@@ -55,7 +55,7 @@ app.get('/deprecated', {
     deprecated: true,
     hide: true
   }
-}, (req, reply) => {})
+}, () => {})
 
 app.put('/some-route/:id', {
   schema: {
@@ -70,7 +70,7 @@ app.put('/some-route/:id', {
       description: 'Find more info here'
     },
   }
-}, (req, reply) => {})
+}, () => {})
 
 app.put('/image.png', {
   schema: {
@@ -101,7 +101,7 @@ app.get('/public/route', {
   links: {
     200: { 'some-route': { operationId: 'opeId' } }
   }
-}, (req, reply) => {})
+}, () => {})
 
 app.get('/public/readonly-schema-route', {
   schema: {
@@ -114,7 +114,7 @@ app.get('/public/readonly-schema-route', {
   links: {
     200: { 'some-route': { operationId: 'opeId' } }
   }
-} as const, (req, reply) => {})
+} as const, () => {})
 
 app
   .register(fastifySwagger, {