From ffef7e00ad3c8f8427d5a5dc2265eede119413b3 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Mon, 29 Dec 2025 13:45:18 +0100 Subject: [PATCH] fix syntax of Catalyst::Runtime version checks A version requirement on a use statement must be a number or a vstring. It cannot be a string. A string will be treated as an argument to ->import. Catalyst::Runtime doesn't have an import method, so the argument would just be ignored. Future versions of perl are intending to make passing arguments to an undefined import method an error. --- t/lib/Test/Catalyst/Action/REST.pm | 2 +- t/lib/Test/Serialize.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/lib/Test/Catalyst/Action/REST.pm b/t/lib/Test/Catalyst/Action/REST.pm index 95ed5bf..8939761 100644 --- a/t/lib/Test/Catalyst/Action/REST.pm +++ b/t/lib/Test/Catalyst/Action/REST.pm @@ -3,7 +3,7 @@ package Test::Catalyst::Action::REST; use Moose; use namespace::autoclean; -use Catalyst::Runtime '5.70'; +use Catalyst::Runtime 5.70; use Catalyst; use FindBin; diff --git a/t/lib/Test/Serialize.pm b/t/lib/Test/Serialize.pm index 432f91c..b99b683 100644 --- a/t/lib/Test/Serialize.pm +++ b/t/lib/Test/Serialize.pm @@ -7,7 +7,7 @@ use lib ("$FindBin::Bin/../lib"); use Moose; use namespace::autoclean; -use Catalyst::Runtime '5.70'; +use Catalyst::Runtime 5.70; use Catalyst; use Test::Catalyst::Log;