ekapusta/doctrine-custom-types-bundle
Install the package via Composer:
composer require vendor/package-name:^1.4.5
For first-time use, focus on:
composer.json for the new dependency.App\Services\MyService vs. app\Services\MyService). The package now handles this automatically.phpunit to validate the upgrade.Key files to inspect:
composer.json (for Symfony bridge and PHP version constraints).phpunit.xml (if customizing test suites post-upgrade).symfony/phpunit-bridge) between Laravel and Symfony projects. Example:
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; // Now available via the bridge
assertSameSize() or assertStringContainsString() methods. For older PHP versions (e.g., 7.4), the package downgrades dependencies automatically.composer dump-autoload
after renaming files (e.g., myService.php → MyService.php).composer.json to enforce the Symfony bridge version:
"require": {
"symfony/phpunit-bridge": "^5.2.12"
}
Run composer update to resolve dependencies.<1.4.0, verify:
assertContains() syntax).class_alias() if needed).PHPUnit 9.x+: Methods like assertEquals() now throw exceptions on failure by default. Update tests to use:
$this->assertEquals($expected, $actual, 'Custom message');
or configure phpunit.xml:
<phpunit ...>
<php>
<ini name="error_reporting" value="-1" />
</php>
</phpunit>
Symfony Bridge Dependency: The package now requires symfony/phpunit-bridge. If your project doesn’t use Symfony, this is a soft dependency—remove it via:
composer remove symfony/phpunit-bridge
Namespace\ClassName vs. namespace\classname).composer dump-autoload --optimize to regenerate autoload files.phpunit --debug to isolate issues with the Symfony bridge or test upgrades.phpunit.xml:
<extensions>
<extension class="Symfony\Bridge\PhpUnit\SymfonyTestsExtension" />
</extensions>
prefer-stable in composer.json:
"config": {
"preferred-install": "dist",
"platform-check": false
}
phpunit --exclude-group integration
to skip Symfony-specific tests if unused.How can I help you explore Laravel packages today?