You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc1410c
Browse filesBrowse the repository at this point in the historyBrowse files
Result cache: dependencies on values declared through $scope->valueDependency()
A rule or a dynamic return type extension that reads something the result
cache does not know about - a DI container, a config file - declares it with
$scope->valueDependency(SomeValueExtension::class, $key). The extension, a
ResultCacheValueExtension, returns the value for the key. The value is stored
in the result cache, and when it's different on the next run, the files that
asked for it are re-analysed.
The same value declared more times, by one or several rules and extensions,
is recorded once. When it's declared outside the walk of the analysed file,
like when a private property type is inferred from the constructor, it is the
file of the scope that depends on it, together with the files depending on
that file.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GdwtgiEHwkF5BTz73jgHQQ
../bashunit -a equals '2' "$(echo "$INFO" | jq --raw-output '.filesToAnalyseCount')"
506
+
OUTPUT=$(../bashunit -a exit_code "1" "../../bin/phpstan analyse -vv --error-format raw")
507
+
echo "$OUTPUT"
508
+
../bashunit -a contains 'UsesLogger.php:7:Call to an undefined method ResultCacheE2EValueDependency\Mailer::log().' "$OUTPUT"
509
+
../bashunit -a contains 'LoggerTrait.php (in context of class ResultCacheE2EValueDependency\UsesLoggerTrait):10:Call to an undefined method ResultCacheE2EValueDependency\Mailer::log().' "$OUTPUT"
0 commit comments