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 86c58fc
Browse filesBrowse the repository at this point in the historyBrowse files
Dynamic throw type extensions and collectors can track dependencies
Their scope is Scope&DependencyTracker, the same as for dynamic return type
extensions and rules. A collector reading something PHPStan does not know
about can track it, and the file is analysed again and its data collected
again when it changes.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GdwtgiEHwkF5BTz73jgHQQ
Copy file name to clipboardExpand all lines: .github/workflows/e2e-tests.yml
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -452,6 +452,8 @@ jobs:
452
452
../bashunit -a contains "UsesLocaleToo.php:10:Function ResultCacheE2EValueDependency\usesLocaleToo() should return 'none' but returns 'cs'." "$OUTPUT"
453
453
../bashunit -a contains 'Holder.php:17:Method ResultCacheE2EValueDependency\Holder::isDebug() should return int but returns string.' "$OUTPUT"
454
454
../bashunit -a contains 'UsesHolder.php:9:Function ResultCacheE2EValueDependency\usesHolder() should return int but returns string.' "$OUTPUT"
455
+
../bashunit -a contains 'UsesMayThrow.php:9:Dead catch - RuntimeException is never thrown in the try block.' "$OUTPUT"
456
+
../bashunit -a contains 'UsesRegion.php:7:Region eu is used.' "$OUTPUT"
455
457
../bashunit -a not_contains 'UsesMailer.php' "$OUTPUT"
456
458
# The extensions read container.json, which the result cache knows nothing about. A rule and a
457
459
# dynamic return type extension both declare the service they ask about - it is recorded once.
@@ -507,6 +509,23 @@ jobs:
507
509
echo "$OUTPUT"
508
510
../bashunit -a contains 'UsesLogger.php:7:Call to an undefined method ResultCacheE2EValueDependency\Mailer::log().' "$OUTPUT"
509
511
../bashunit -a contains 'LoggerTrait.php (in context of class ResultCacheE2EValueDependency\UsesLoggerTrait):10:Call to an undefined method ResultCacheE2EValueDependency\Mailer::log().' "$OUTPUT"
512
+
# A dynamic throw type extension tracks the values it reads too.
0 commit comments