Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(bc layer): deprecate passing states as string to Factory::new() #559

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

nikophil
Copy link
Member

No description provided.

@nikophil nikophil force-pushed the bc/deprecate-passing-string-to-new branch 3 times, most recently from 7fd7595 to 178b7d3 Compare February 13, 2024 07:48
@nikophil nikophil force-pushed the bc/deprecate-passing-string-to-new branch from 178b7d3 to 21a9305 Compare February 13, 2024 07:58
@nikophil nikophil force-pushed the bc/deprecate-passing-string-to-new branch from 21a9305 to 8d36c69 Compare February 13, 2024 07:58
@nikophil nikophil mentioned this pull request Feb 14, 2024
6 tasks
Copy link
Member

@kbond kbond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you. I've always regretted that I did that.

@kbond kbond merged commit 37fb0ad into zenstruck:1.x-bc Feb 15, 2024
21 checks passed
nikophil added a commit that referenced this pull request Mar 21, 2024
refactor: Foundry 2 BC layer

refactor: deprecate ModelFactory

refactor: deprecate ModelFactory::getDefaults()

refactor: deprecate ModelFactory::getClass()

refactor: add #[\ReturnTypeWillChange] to PersistentProxyObjectFactory::initialize()

refactor: deprecate proxy class

refactor: deprecate stuff in functions.php

refactor: deprecate RepositoryProxy

refactor: deprecate stuff in Instantiator

bot: fix cs [skip ci]

minor: deprecate more stuff

* refactor: deprecate passing callable to sequence

* refactor: deprecate usage of disable/enable_persisting without doctrine

* refactor: deprecate TestState for UnitTestConfig

bot: fix cs [skip ci]

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final (#518)

* refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final

* refactor: introduce persistent_factory()

bot: fix cs [skip ci]

refactor: deprecate config database_resetter (#523)

* refactor: deprecate config database_resetter.orm in favor of orm.reset

* refactor: deprecate config database_resetter.odm in favor of mongo.reset

bot: fix cs [skip ci]

refactor: deprecate config instantiator.without_constructor (#522)

bot: fix cs [skip ci]

refactor: add BC layer for methods in Instantiator (#535)

refactor: change phpstan FactoryCollection return type (#530)

bot: fix cs [skip ci]

refactor: remove not working BC layer on Factory::__construct() (#529)

refactor(bc layer): introduce Proxy interface (#528)

bot: fix cs [skip ci]

refactor: deprecate config auto_refresh_proxies (#524)

bot: fix cs [skip ci]

refactor: better deprecations (#541)

bot: sync with template [skip ci]

bot: fix cs [skip ci]

feat: introduce ObjectFactory (#543)

bot: fix cs [skip ci]

feat: introduce rector rules 🎉 (#544)

refactor: create ObjectFactory with make:factory --no-persistence (#546)

refactor: more deprecations (#547)

* refactor: deprecate Factory::faker() outisde of a factory

* refactor: deprecate FactoryCollection::set()

bot: fix cs [skip ci]

fix: remove directory utils/rector/vendor from git

fix: rename Proxy::get() into Proxy::forceGet()

fix: rollback BC layer on sequence() attributes

fix(rector): handle extending user-defined factory class

fix(rector): proxify create() and instantiate() transformation (#549)

fix(rector): don't remove ->object() call for create() or instantiate()

refctor: deprecate FactoryCollection::factory() (#550)

refactor: deprecate using proxy with anonymous class

bot: fix cs [skip ci]

docs(bc layer): document known BC breaks (#554)

refactor: deprecate $orderBy argument in RepositoryDecorator::findOneBy() (#551)

fix(rector): bump rector/rector 1.0

fix(bc layer): install php cs fixer for maker bundle (#560)

refactor(bc layer): deprecate passing states as string to Factory::new() (#559)

bot: fix cs [skip ci]

minor: fix some types for sca

rector: remove un-needed Factory<Proxy<>> php docs

rector: migrate old proxy phpdoc to generic ones

rector: use getName() instead of cast to string nodes

rector: fix @method parameters rendering

bc: deprecate config auto_refresh_proxies

bc: introduce ProxyRepositoryDecorator

bot: fix cs [skip ci]

fix(proxy): assert object is not scheduled for insert before throwing in _refresh

minor(rector): change doc to comply to rector 1.0

bc: throw deprecation when calling Configuration::disableDefaultProxyAutoRefresh()

bot: fix cs [skip ci]

bc: throw deprecation when calling Configuration::disableDefaultProxyAutoRefresh()

bc: add repo class in ProxyRepositoryDecorator @methods in rector + maker

bot: fix cs [skip ci]

bc: fix Proxy sca problem in ModelFactory

bot: fix cs [skip ci]

bc: fix Proxy sca problem in ModelFactory

bot: fix cs [skip ci]

bc: fix PersistentObjectFactory @methods

fix(bc): add missing import

bc(rector): remove useless "unproxify" array_map

bc(rector): fix factories @method phpdoc

bc(rector): clean rector

bot: fix cs [skip ci]
nikophil added a commit that referenced this pull request Mar 21, 2024
refactor: Foundry 2 BC layer

refactor: deprecate ModelFactory

refactor: deprecate ModelFactory::getDefaults()

refactor: deprecate ModelFactory::getClass()

refactor: add #[\ReturnTypeWillChange] to PersistentProxyObjectFactory::initialize()

refactor: deprecate proxy class

refactor: deprecate stuff in functions.php

refactor: deprecate RepositoryProxy

refactor: deprecate stuff in Instantiator

bot: fix cs [skip ci]

minor: deprecate more stuff

* refactor: deprecate passing callable to sequence

* refactor: deprecate usage of disable/enable_persisting without doctrine

* refactor: deprecate TestState for UnitTestConfig

bot: fix cs [skip ci]

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final (#518)

* refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final

* refactor: introduce persistent_factory()

bot: fix cs [skip ci]

refactor: deprecate config database_resetter (#523)

* refactor: deprecate config database_resetter.orm in favor of orm.reset

* refactor: deprecate config database_resetter.odm in favor of mongo.reset

bot: fix cs [skip ci]

refactor: deprecate config instantiator.without_constructor (#522)

bot: fix cs [skip ci]

refactor: add BC layer for methods in Instantiator (#535)

refactor: change phpstan FactoryCollection return type (#530)

bot: fix cs [skip ci]

refactor: remove not working BC layer on Factory::__construct() (#529)

refactor(bc layer): introduce Proxy interface (#528)

bot: fix cs [skip ci]

refactor: deprecate config auto_refresh_proxies (#524)

bot: fix cs [skip ci]

refactor: better deprecations (#541)

bot: sync with template [skip ci]

bot: fix cs [skip ci]

feat: introduce ObjectFactory (#543)

bot: fix cs [skip ci]

feat: introduce rector rules 🎉 (#544)

refactor: create ObjectFactory with make:factory --no-persistence (#546)

refactor: more deprecations (#547)

* refactor: deprecate Factory::faker() outisde of a factory

* refactor: deprecate FactoryCollection::set()

bot: fix cs [skip ci]

fix: remove directory utils/rector/vendor from git

fix: rename Proxy::get() into Proxy::forceGet()

fix: rollback BC layer on sequence() attributes

fix(rector): handle extending user-defined factory class

fix(rector): proxify create() and instantiate() transformation (#549)

fix(rector): don't remove ->object() call for create() or instantiate()

refctor: deprecate FactoryCollection::factory() (#550)

refactor: deprecate using proxy with anonymous class

bot: fix cs [skip ci]

docs(bc layer): document known BC breaks (#554)

refactor: deprecate $orderBy argument in RepositoryDecorator::findOneBy() (#551)

fix(rector): bump rector/rector 1.0

fix(bc layer): install php cs fixer for maker bundle (#560)

refactor(bc layer): deprecate passing states as string to Factory::new() (#559)

bot: fix cs [skip ci]

minor: fix some types for sca

rector: remove un-needed Factory<Proxy<>> php docs

rector: migrate old proxy phpdoc to generic ones

rector: use getName() instead of cast to string nodes

rector: fix @method parameters rendering

bc: deprecate config auto_refresh_proxies

bc: introduce ProxyRepositoryDecorator

bot: fix cs [skip ci]

fix(proxy): assert object is not scheduled for insert before throwing in _refresh

minor(rector): change doc to comply to rector 1.0

bc: throw deprecation when calling Configuration::disableDefaultProxyAutoRefresh()

bot: fix cs [skip ci]

bc: throw deprecation when calling Configuration::disableDefaultProxyAutoRefresh()

bc: add repo class in ProxyRepositoryDecorator @methods in rector + maker

bot: fix cs [skip ci]

bc: fix Proxy sca problem in ModelFactory

bot: fix cs [skip ci]

bc: fix Proxy sca problem in ModelFactory

bot: fix cs [skip ci]

bc: fix PersistentObjectFactory @methods

fix(bc): add missing import

bc(rector): remove useless "unproxify" array_map

bc(rector): fix factories @method phpdoc

bc(rector): clean rector

bot: fix cs [skip ci]
nikophil added a commit that referenced this pull request Mar 21, 2024
refactor: Foundry 2 BC layer

refactor: deprecate ModelFactory

refactor: deprecate ModelFactory::getDefaults()

refactor: deprecate ModelFactory::getClass()

refactor: add #[\ReturnTypeWillChange] to PersistentProxyObjectFactory::initialize()

refactor: deprecate proxy class

refactor: deprecate stuff in functions.php

refactor: deprecate RepositoryProxy

refactor: deprecate stuff in Instantiator

bot: fix cs [skip ci]

minor: deprecate more stuff

* refactor: deprecate passing callable to sequence

* refactor: deprecate usage of disable/enable_persisting without doctrine

* refactor: deprecate TestState for UnitTestConfig

bot: fix cs [skip ci]

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final (#518)

* refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final

* refactor: introduce persistent_factory()

bot: fix cs [skip ci]

refactor: deprecate config database_resetter (#523)

* refactor: deprecate config database_resetter.orm in favor of orm.reset

* refactor: deprecate config database_resetter.odm in favor of mongo.reset

bot: fix cs [skip ci]

refactor: deprecate config instantiator.without_constructor (#522)

bot: fix cs [skip ci]

refactor: add BC layer for methods in Instantiator (#535)

refactor: change phpstan FactoryCollection return type (#530)

bot: fix cs [skip ci]

refactor: remove not working BC layer on Factory::__construct() (#529)

refactor(bc layer): introduce Proxy interface (#528)

bot: fix cs [skip ci]

refactor: deprecate config auto_refresh_proxies (#524)

bot: fix cs [skip ci]

refactor: better deprecations (#541)

bot: sync with template [skip ci]

bot: fix cs [skip ci]

feat: introduce ObjectFactory (#543)

bot: fix cs [skip ci]

feat: introduce rector rules 🎉 (#544)

refactor: create ObjectFactory with make:factory --no-persistence (#546)

refactor: more deprecations (#547)

* refactor: deprecate Factory::faker() outisde of a factory

* refactor: deprecate FactoryCollection::set()

bot: fix cs [skip ci]

fix: remove directory utils/rector/vendor from git

fix: rename Proxy::get() into Proxy::forceGet()

fix: rollback BC layer on sequence() attributes

fix(rector): handle extending user-defined factory class

fix(rector): proxify create() and instantiate() transformation (#549)

fix(rector): don't remove ->object() call for create() or instantiate()

refctor: deprecate FactoryCollection::factory() (#550)

refactor: deprecate using proxy with anonymous class

bot: fix cs [skip ci]

docs(bc layer): document known BC breaks (#554)

refactor: deprecate $orderBy argument in RepositoryDecorator::findOneBy() (#551)

fix(rector): bump rector/rector 1.0

fix(bc layer): install php cs fixer for maker bundle (#560)

refactor(bc layer): deprecate passing states as string to Factory::new() (#559)

bot: fix cs [skip ci]

minor: fix some types for sca

rector: remove un-needed Factory<Proxy<>> php docs

rector: migrate old proxy phpdoc to generic ones

rector: use getName() instead of cast to string nodes

rector: fix @method parameters rendering

bc: deprecate config auto_refresh_proxies

bc: introduce ProxyRepositoryDecorator

bot: fix cs [skip ci]

fix(proxy): assert object is not scheduled for insert before throwing in _refresh

minor(rector): change doc to comply to rector 1.0

bc: throw deprecation when calling Configuration::disableDefaultProxyAutoRefresh()

bot: fix cs [skip ci]

bc: throw deprecation when calling Configuration::disableDefaultProxyAutoRefresh()

bc: add repo class in ProxyRepositoryDecorator @methods in rector + maker

bot: fix cs [skip ci]

bc: fix Proxy sca problem in ModelFactory

bot: fix cs [skip ci]

bc: fix Proxy sca problem in ModelFactory

bot: fix cs [skip ci]

bc: fix PersistentObjectFactory @methods

fix(bc): add missing import

bc(rector): remove useless "unproxify" array_map

bc(rector): fix factories @method phpdoc

bc(rector): clean rector

bot: fix cs [skip ci]
nikophil added a commit that referenced this pull request Mar 21, 2024
refactor: Foundry 2 BC layer

refactor: deprecate ModelFactory

refactor: deprecate ModelFactory::getDefaults()

refactor: deprecate ModelFactory::getClass()

refactor: add #[\ReturnTypeWillChange] to PersistentProxyObjectFactory::initialize()

refactor: deprecate proxy class

refactor: deprecate stuff in functions.php

refactor: deprecate RepositoryProxy

refactor: deprecate stuff in Instantiator

bot: fix cs [skip ci]

minor: deprecate more stuff

* refactor: deprecate passing callable to sequence

* refactor: deprecate usage of disable/enable_persisting without doctrine

* refactor: deprecate TestState for UnitTestConfig

bot: fix cs [skip ci]

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final (#518)

* refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final

* refactor: introduce persistent_factory()

bot: fix cs [skip ci]

refactor: deprecate config database_resetter (#523)

* refactor: deprecate config database_resetter.orm in favor of orm.reset

* refactor: deprecate config database_resetter.odm in favor of mongo.reset

bot: fix cs [skip ci]

refactor: deprecate config instantiator.without_constructor (#522)

bot: fix cs [skip ci]

refactor: add BC layer for methods in Instantiator (#535)

refactor: change phpstan FactoryCollection return type (#530)

bot: fix cs [skip ci]

refactor: remove not working BC layer on Factory::__construct() (#529)

refactor(bc layer): introduce Proxy interface (#528)

bot: fix cs [skip ci]

refactor: deprecate config auto_refresh_proxies (#524)

bot: fix cs [skip ci]

refactor: better deprecations (#541)

bot: sync with template [skip ci]

bot: fix cs [skip ci]

feat: introduce ObjectFactory (#543)

bot: fix cs [skip ci]

feat: introduce rector rules 🎉 (#544)

refactor: create ObjectFactory with make:factory --no-persistence (#546)

refactor: more deprecations (#547)

* refactor: deprecate Factory::faker() outisde of a factory

* refactor: deprecate FactoryCollection::set()

bot: fix cs [skip ci]

fix: remove directory utils/rector/vendor from git

fix: rename Proxy::get() into Proxy::forceGet()

fix: rollback BC layer on sequence() attributes

fix(rector): handle extending user-defined factory class

fix(rector): proxify create() and instantiate() transformation (#549)

fix(rector): don't remove ->object() call for create() or instantiate()

refctor: deprecate FactoryCollection::factory() (#550)

refactor: deprecate using proxy with anonymous class

bot: fix cs [skip ci]

docs(bc layer): document known BC breaks (#554)

refactor: deprecate $orderBy argument in RepositoryDecorator::findOneBy() (#551)

fix(rector): bump rector/rector 1.0

fix(bc layer): install php cs fixer for maker bundle (#560)

refactor(bc layer): deprecate passing states as string to Factory::new() (#559)

bot: fix cs [skip ci]

minor: fix some types for sca

rector: remove un-needed Factory<Proxy<>> php docs

rector: migrate old proxy phpdoc to generic ones

rector: use getName() instead of cast to string nodes

rector: fix @method parameters rendering

bc: deprecate config auto_refresh_proxies

bc: introduce ProxyRepositoryDecorator

bot: fix cs [skip ci]

fix(proxy): assert object is not scheduled for insert before throwing in _refresh

minor(rector): change doc to comply to rector 1.0

bc: throw deprecation when calling Configuration::disableDefaultProxyAutoRefresh()

bot: fix cs [skip ci]

bc: throw deprecation when calling Configuration::disableDefaultProxyAutoRefresh()

bc: add repo class in ProxyRepositoryDecorator @methods in rector + maker

bot: fix cs [skip ci]

bc: fix Proxy sca problem in ModelFactory

bot: fix cs [skip ci]

bc: fix Proxy sca problem in ModelFactory

bot: fix cs [skip ci]

bc: fix PersistentObjectFactory @methods

fix(bc): add missing import

bc(rector): remove useless "unproxify" array_map

bc(rector): fix factories @method phpdoc

bc(rector): clean rector

bot: fix cs [skip ci]
nikophil added a commit that referenced this pull request Mar 25, 2024
* refactor: Foundry 2 BC layer

refactor: Foundry 2 BC layer

refactor: deprecate ModelFactory

refactor: deprecate ModelFactory::getDefaults()

refactor: deprecate ModelFactory::getClass()

refactor: add #[\ReturnTypeWillChange] to PersistentProxyObjectFactory::initialize()

refactor: deprecate proxy class

refactor: deprecate stuff in functions.php

refactor: deprecate RepositoryProxy

refactor: deprecate stuff in Instantiator

bot: fix cs [skip ci]

minor: deprecate more stuff

* refactor: deprecate passing callable to sequence

* refactor: deprecate usage of disable/enable_persisting without doctrine

* refactor: deprecate TestState for UnitTestConfig

bot: fix cs [skip ci]

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final (#518)

* refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final

* refactor: introduce persistent_factory()

bot: fix cs [skip ci]

refactor: deprecate config database_resetter (#523)

* refactor: deprecate config database_resetter.orm in favor of orm.reset

* refactor: deprecate config database_resetter.odm in favor of mongo.reset

bot: fix cs [skip ci]

refactor: deprecate config instantiator.without_constructor (#522)

bot: fix cs [skip ci]

refactor: add BC layer for methods in Instantiator (#535)

refactor: change phpstan FactoryCollection return type (#530)

bot: fix cs [skip ci]

refactor: remove not working BC layer on Factory::__construct() (#529)

refactor(bc layer): introduce Proxy interface (#528)

bot: fix cs [skip ci]

refactor: deprecate config auto_refresh_proxies (#524)

bot: fix cs [skip ci]

refactor: better deprecations (#541)

bot: sync with template [skip ci]

bot: fix cs [skip ci]

feat: introduce ObjectFactory (#543)

bot: fix cs [skip ci]

feat: introduce rector rules 🎉 (#544)

refactor: create ObjectFactory with make:factory --no-persistence (#546)

refactor: more deprecations (#547)

* refactor: deprecate Factory::faker() outisde of a factory

* refactor: deprecate FactoryCollection::set()

bot: fix cs [skip ci]

fix: remove directory utils/rector/vendor from git

fix: rename Proxy::get() into Proxy::forceGet()

fix: rollback BC layer on sequence() attributes

fix(rector): handle extending user-defined factory class

fix(rector): proxify create() and instantiate() transformation (#549)

fix(rector): don't remove ->object() call for create() or instantiate()

refctor: deprecate FactoryCollection::factory() (#550)

refactor: deprecate using proxy with anonymous class

bot: fix cs [skip ci]

docs(bc layer): document known BC breaks (#554)

refactor: deprecate $orderBy argument in RepositoryDecorator::findOneBy() (#551)

fix(rector): bump rector/rector 1.0

fix(bc layer): install php cs fixer for maker bundle (#560)

refactor(bc layer): deprecate passing states as string to Factory::new() (#559)

bot: fix cs [skip ci]

minor: fix some types for sca

rector: remove un-needed Factory<Proxy<>> php docs

rector: migrate old proxy phpdoc to generic ones

rector: use getName() instead of cast to string nodes

rector: fix @method parameters rendering

bc: deprecate config auto_refresh_proxies

bc: introduce ProxyRepositoryDecorator

bot: fix cs [skip ci]

fix(proxy): assert object is not scheduled for insert before throwing in _refresh

minor(rector): change doc to comply to rector 1.0

bc: throw deprecation when calling Configuration::disableDefaultProxyAutoRefresh()

bot: fix cs [skip ci]

bc: throw deprecation when calling Configuration::disableDefaultProxyAutoRefresh()

bc: add repo class in ProxyRepositoryDecorator @methods in rector + maker

bot: fix cs [skip ci]

bc: fix Proxy sca problem in ModelFactory

bot: fix cs [skip ci]

bc: fix Proxy sca problem in ModelFactory

bot: fix cs [skip ci]

bc: fix PersistentObjectFactory @methods

fix(bc): add missing import

bc(rector): remove useless "unproxify" array_map

bc(rector): fix factories @method phpdoc

bc(rector): clean rector

bot: fix cs [skip ci]

* rector: rewrite phpdoc (#571)

* fix(rector): repository method is static

* fix(rector) second argument for many() is optional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants