Upgrading symfony/property-info 7 to 8
Breakingv7.4.22 → v8.1.10Breaking1Platform1New1Fixed38
Fetching 20 releases from GitHub…19 / 20
BreakingUpgrade verdict
1 breaking change and a platform requirement change.
In plain terms
- The `Type` class from PropertyInfo has been removed, so code that uses it must be updated.
- Symfony 8 requires PHP 8.4 or newer, so you must upgrade PHP before upgrading.
Must act 2 items need code or config changes
PHP requirement changed in v8.1.0-BETA1: >=8.2 → >=8.4.1.
What you must change
Breaking1
Removes PropertyInfo's
Type.TypePlatform1
Bumps Symfony 8 to require PHP >= 8.4.
API changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- removed:
class Type - removed:
const Type.BUILTIN_TYPE_ARRAY - removed:
const Type.BUILTIN_TYPE_BOOL - removed:
const Type.BUILTIN_TYPE_CALLABLE - removed:
const Type.BUILTIN_TYPE_FALSE - removed:
const Type.BUILTIN_TYPE_FLOAT - removed:
const Type.BUILTIN_TYPE_INT - removed:
const Type.BUILTIN_TYPE_ITERABLE - removed:
const Type.BUILTIN_TYPE_NULL - removed:
const Type.BUILTIN_TYPE_OBJECT - removed:
const Type.BUILTIN_TYPE_RESOURCE - removed:
const Type.BUILTIN_TYPE_STRING - removed:
const Type.BUILTIN_TYPE_TRUE - removed:
constructor Type(string $builtinType, bool $nullable = …, ?string $class = …, bool $collection = …, array|self|null $collectionKeyType = …, array|self|null $collectionValueType = …) - removed:
method PropertyInfoCacheExtractor.getTypes(string $class, string $property, array $context = …): ?array - removed:
method PropertyInfoExtractor.getTypes(string $class, string $property, array $context = …): ?array - removed:
method PropertyTypeExtractorInterface.getTypes(string $class, string $property, array $context = …): ?array - removed:
method Type.getBuiltinType(): string - removed:
method Type.getClassName(): ?string - removed:
method Type.getCollectionKeyTypes(): array - removed:
method Type.getCollectionValueTypes(): array - removed:
method Type.isCollection(): bool - removed:
method Type.isNullable(): bool - removed:
static property Type.builtinCollectionTypes: array - removed:
static property Type.builtinTypes: array - added:
method PropertyTypeExtractorInterface.getType(string $class, string $property, array $context = …): ?Type
- removed:
method ConstructorArgumentTypeExtractorInterface.getTypesFromConstructor(string $class, string $property): ?array - removed:
method ConstructorExtractor.getTypes(string $class, string $property, array $context = …): ?array - removed:
method PhpDocExtractor.getTypes(string $class, string $property, array $context = …): ?array - removed:
method PhpDocExtractor.getTypesFromConstructor(string $class, string $property): ?array - removed:
method PhpStanExtractor.getTypes(string $class, string $property, array $context = …): ?array - removed:
method PhpStanExtractor.getTypesFromConstructor(string $class, string $property): ?array - removed:
method ReflectionExtractor.getTypes(string $class, string $property, array $context = …): ?array - removed:
method ReflectionExtractor.getTypesFromConstructor(string $class, string $property): ?array
- removed:
class LegacyTypeConverter - removed:
final class PhpStanTypeHelper - removed:
method PhpDocTypeHelper.getTypes(DocType $varType): array - removed:
method PhpStanTypeHelper.getTypes(PhpDocTagValueNode $node, TypeContext $typeContext): array - removed:
static method LegacyTypeConverter.toTypeInfoType(?array $legacyTypes): ?Type