use Pimcore\Model\Object wouldn't be possible anymorePimcore\Model\DataObject\* for classes requested out of the Pimcore\Model\Object\* namespace (< PHP 7.2 only)pimcore/models/Object.php also needs a version check
This should probably also go into the documentation here: https://www.pimcore.org/docs/5.0.0/Installation_and_Upgrade/Updating_Pimcore/Upgrade_from_4_to_5/Migrate_to_Symfony_Stack.html
Just dropping by... I work on a refactoring tool, that helps with PHP code migration to newer version.
I've just added PR https://github.com/rectorphp/rector/pull/657 that help with Object migration anywhere in the code. Class, parent, typehints, new instances etc.
It really helps with hude code base upgrades.
Is there any chance of patching this into Pimcore 4.6?
We have a couple of (really) old Pimcore projects which we would like to upgrade to 4.6, because the jump from Zend to Symfony required for version 5 would be pretty expensive. But since PHP 5.6 is nearing end of life and PHP 7.1 will only be supported until the end of 2019, we would like to go to PHP 7.2.
@i-telligence-af yes, that should be possible.
But we're not going to implement that anymore in the open source version, that's a topic for our commercial LTS offering for v4.