PHPackages                             amacode/property-info-override - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. amacode/property-info-override

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

amacode/property-info-override
==============================

Wrapper for symfony PropertyInfo component which returns user-defined property info if set

1.0.1(3y ago)09MITPHPPHP &gt;=7.4

Since Jan 22Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/Kuramawers/property-info-override)[ Packagist](https://packagist.org/packages/amacode/property-info-override)[ RSS](/packages/amacode-property-info-override/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (10)Versions (3)Used By (0)

[![Packagist Version](https://camo.githubusercontent.com/8b3f4c4281d17c8155e2df879c1dc691036743d3ac5b74fb55eaefc31925fd5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d61636f64652f70726f70657274792d696e666f2d6f76657272696465)](https://camo.githubusercontent.com/8b3f4c4281d17c8155e2df879c1dc691036743d3ac5b74fb55eaefc31925fd5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d61636f64652f70726f70657274792d696e666f2d6f76657272696465)[![GitHub Workflow Status](https://camo.githubusercontent.com/2690964214615127f61be84ee595b0a249853b060a66d67adf98d682dc06cddb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4b7572616d61776572732f70726f70657274792d696e666f2d6f766572726964652f63692e796d6c)](https://camo.githubusercontent.com/2690964214615127f61be84ee595b0a249853b060a66d67adf98d682dc06cddb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4b7572616d61776572732f70726f70657274792d696e666f2d6f766572726964652f63692e796d6c)[![Codecov](https://camo.githubusercontent.com/5797c8500749960583083736fe4941742880e1cd06c780c1b206a69147ff3c52/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f4b7572616d61776572732f70726f70657274792d696e666f2d6f76657272696465)](https://camo.githubusercontent.com/5797c8500749960583083736fe4941742880e1cd06c780c1b206a69147ff3c52/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f4b7572616d61776572732f70726f70657274792d696e666f2d6f76657272696465)[![GitHub](https://camo.githubusercontent.com/992b705c4b1b91f1a8710a391c8ff6b8183c941b1a45cbd503efadafc403e8ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4b7572616d61776572732f70726f70657274792d696e666f2d6f76657272696465)](https://camo.githubusercontent.com/992b705c4b1b91f1a8710a391c8ff6b8183c941b1a45cbd503efadafc403e8ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4b7572616d61776572732f70726f70657274792d696e666f2d6f76657272696465)

### Overview

[](#overview)

This package is an extension for [PropertyInfo](https://github.com/symfony/property-info) component.
Sometimes the default `PropertyInfoExtractor` defines the property meta info not the way you want. It may break you API schema generation or requests validations (is actual for [ApiPlatform](https://api-platform.com/)).
This package allows you to override a property type meta info which can be used by 3rd party libraries if it had been defined incorrectly (see usage example below).

### Installation

[](#installation)

```
composer require amacode/property-info-override
```

### Usage

[](#usage)

##### Add `PropertyType` annotation/attribute to property where type is defined incorrectly by PropertyInfoExtractor

[](#add-propertytype-annotationattribute-to-property-where-type-is-defined-incorrectly-by-propertyinfoextractor)

```
