File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,17 @@ $SIG{__WARN__} = sub { warn '=PerlWarning=', @_ };
16
16
# These modules can cause issues because they wipe the symbol table before we get a chance to inspect it.
17
17
# Prevent them from loading.
18
18
# I hope this doesn't cause any issues, perhaps VERSION numbers or import statements would help here
19
+ #
20
+ # See https://perldoc.perl.org/perldelta#Calling-the-import-method-of-an-unknown-package-produces-a-warning
21
+ # for a discussion of why the stub imports are necessary as of Perl 5.40
19
22
$INC {' namespace/clean.pm' } = ' ' ;
20
23
$INC {' namespace/autoclean.pm' } = ' ' ;
21
24
{
22
25
no strict ' refs' ;
23
26
*{' namespace::autoclean::VERSION' } = sub { ' 0.29' };
24
27
*{' namespace::clean::VERSION' } = sub { ' 0.27' };
28
+ *{' namespace::autoclean::import' } = sub { };
29
+ *{' namespace::clean::import' } = sub { };
25
30
}
26
31
27
32
CHECK {
You can’t perform that action at this time.
0 commit comments