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 39efdc6
Browse filesBrowse the repository at this point in the historyBrowse files
Match an intersection's finite types by value, not by description
IntersectionType::getFiniteTypes() keyed each member's finite types by
describe(VerbosityLevel::typeOnly()), which is the same 'int', 'string'
or 'float' for every value of a kind: (1|2)&(1|2|3) had the finite types
[2] instead of [1, 2], and disjoint members could share one. The values
are now keyed by FiniteTypeSet::key(), whose keys are equal exactly when
the types are, and the values it does not key (floats, constant arrays)
are matched with equals(). Ported to the native class the same way.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Fdg8n3eEi4ZoXa4dA2k4A
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1392,12 +1392,6 @@ parameters:
1392
1392
count:1
1393
1393
path:src/Type/IntersectionType.php
1394
1394
1395
-
-
1396
-
rawMessage:'Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCaseObject() or Type::getEnumCases() instead.'
1397
-
identifier:phpstanApi.instanceofType
1398
-
count:1
1399
-
path:src/Type/IntersectionType.php
1400
-
1401
1395
-
1402
1396
rawMessage:Doing instanceof PHPStan\Type\IntersectionType is error-prone and deprecated.
0 commit comments