Skip to content

feat(cache): add native types to all CacheInterface methods #13279

feat(cache): add native types to all CacheInterface methods

feat(cache): add native types to all CacheInterface methods #13279

Triggered via pull request November 27, 2025 11:12
Status Failure
Total duration 1m 17s
Artifacts

test-phpstan.yml

on: pull_request
PHP Static Analysis
1m 12s
PHP Static Analysis
Fit to window
Zoom out
Zoom in

Annotations

8 errors
PHP Static Analysis
Process completed with exit code 1.
PHP Static Analysis
Internal error: syntax error, unexpected token "<<", expecting "function" or "const" while analysing file /home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/Cache/CacheFactoryTest.php Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml: ## /home/runner/work/CodeIgniter4/CodeIgniter4/system/Cache/Handlers/DummyHandler.php(52) #0 /home/runner/work/CodeIgniter4/CodeIgniter4/system/Autoloader/Autoloader.php(295): CodeIgniter\Autoloader\Autoloader->includeFile() #1 /home/runner/work/CodeIgniter4/CodeIgniter4/system/Autoloader/Autoloader.php(271): CodeIgniter\Autoloader\Autoloader->loadInNamespace() #2 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/AutoloadFunctionsSourceLocator.php(37): CodeIgniter\Autoloader\Autoloader->loadClass() #3 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator/Type/AggregateSourceLocator.php(26): PHPStan\Reflection\BetterReflection\SourceLocator\AutoloadFunctionsSourceLocator->locateIdentifier() #4 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator/Type/MemoizingSourceLocator.php(30): PHPStan\BetterReflection\SourceLocator\Type\AggregateSourceLocator->locateIdentifier() #5 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflector/DefaultReflector.php(29): PHPStan\BetterReflection\SourceLocator\Type\MemoizingSourceLocator->locateIdentifier() #6 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/Reflector/MemoizingReflector.php(50): PHPStan\BetterReflection\Reflector\DefaultReflector->reflectClass() #7 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvider.php(154): PHPStan\Reflection\BetterReflection\Reflector\MemoizingReflector->reflectClass() #8 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/MemoizingReflectionProvider.php(32): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->hasClass() #9 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Rules/ClassCaseSensitivityCheck.php(34): PHPStan\Reflection\ReflectionProvider\MemoizingReflectionProvider->hasClass() #10 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Rules/ClassNameCheck.php(33): PHPStan\Rules\ClassCaseSensitivityCheck->checkClassNames() #11 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Rules/Namespaces/ExistingNamesInUseRule.php(116): PHPStan\Rules\ClassNameCheck->checkClassNames() #12 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Rules/Namespaces/ExistingNamesInUseRule.php(64): PHPStan\Rules\Namespaces\ExistingNamesInUseRule->checkClasses() #13 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php(142): PHPStan\Rules\Namespaces\ExistingNamesInUseRule->processNode() #14 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(588): PHPStan\Analyser\FileAnalyser->PHPStan\Analyser\{closure}() #15 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(522): PHPStan\Analyser\NodeScopeResolver->processStmtNode() #16 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(850): PHPStan\Analyser\NodeScopeResolver->processStmtNodes() #17 phar:///home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(470): PHPStan\Analyser\N
PHP Static Analysis: system/Cache/Handlers/WincacheHandler.php#L67
Syntax error, unexpected T_SL on line 67
PHP Static Analysis: system/Cache/Handlers/RedisHandler.php#L171
Syntax error, unexpected T_SL on line 171
PHP Static Analysis: system/Cache/Handlers/PredisHandler.php#L147
Syntax error, unexpected T_SL on line 147
PHP Static Analysis: system/Cache/Handlers/MemcachedHandler.php#L174
Syntax error, unexpected T_SL on line 174
PHP Static Analysis: system/Cache/Handlers/FileHandler.php#L123
Syntax error, unexpected T_SL on line 123
PHP Static Analysis: system/Cache/Handlers/DummyHandler.php#L52
Syntax error, unexpected T_SL on line 52