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
Copy file name to clipboardexpand all lines: UPGRADING.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -287,15 +287,15 @@ Instead of `AccessoryArrayListType::intersectWith($type)`, do `TypeCombinator::i
287
287
* Remove `TypeUtils::getEnumCaseObjects()`, use [`Type::getEnumCases()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getEnumCases) instead
288
288
* Remove `TypeUtils::containsCallable()`, use [`Type::isCallable()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_isCallable) instead
289
289
* Removed `Scope::doNotTreatPhpDocTypesAsCertain()`, use `getNativeType()` instead
290
-
* Parameter `$isList` in `ConstantArrayType` constructor can only be `TrinaryLogic`, no longer bool
291
-
* Parameter `$nextAutoIndexes` in `ConstantArrayType` constructor can only be `non-empty-list<int>`, no longer int
290
+
* Parameter `$isList` in `ConstantArrayType` constructor can only be `TrinaryLogic`, no longer `bool`
291
+
* Parameter `$nextAutoIndexes` in `ConstantArrayType` constructor can only be `non-empty-list<int>`, no longer `int`
292
292
* Remove `ConstantType` interface, use [`Type::isConstantValue()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_isConstantValue) instead
293
293
*`acceptsNamedArguments()` in `FunctionReflection`, `ExtendedMethodReflection` and `CallableParametersAcceptor` interfaces returns `TrinaryLogic` instead of `bool`
294
294
* Remove `FunctionReflection::isFinal()`
295
295
*[`Type::getProperty()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.Type.html#_getProperty) now returns [`ExtendedPropertyReflection`](https://apiref.phpstan.org/2.0.x/PHPStan.Reflection.ExtendedPropertyReflection.html)
296
296
*`additionalConfigFiles` config parameter must be a list
297
297
* Remove `__set_state()` on objects that should not be serialized in cache
298
-
* Parameter `$selfClass` of [`TypehintHelper::decideTypeFromReflection()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.TypehintHelper.html#_decideTypeFromReflection) no longer accepts string
298
+
* Parameter `$selfClass` of [`TypehintHelper::decideTypeFromReflection()`](https://apiref.phpstan.org/2.0.x/PHPStan.Type.TypehintHelper.html#_decideTypeFromReflection) no longer accepts `string`
299
299
* Remove `fixerTmpDir` config parameter, use `pro.tmpDir` instead
300
300
* Remove `tempResultCachePath` config parameter, use `resultCachePath` instead
301
301
*`LevelsTestCase::dataTopics()` data provider made static
@@ -309,5 +309,5 @@ Instead of `AccessoryArrayListType::intersectWith($type)`, do `TypeCombinator::i
309
309
* Added more methods around PHPDoc types and native types to the (new) `ClassConstantReflection`
310
310
* Interface `GlobalConstantReflection` renamed to `ConstantReflection`
311
311
* Renamed interfaces and classes from `*WithPhpDocs` to `Extended*`
312
-
*`ClassPropertyNode::getNativeType()` return type changed from AST node to `Type|null
312
+
*`ClassPropertyNode::getNativeType()` return type changed from AST node to `Type|null`
313
313
* Class `PHPStan\Node\ClassMethod` (accessible from `ClassMethodsNode`) is no longer an AST node
0 commit comments