mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 22:01:48 +00:00
- Add tests/bootstrap.php to suppress PHP 8.4 vendor deprecation notices (Mockery implicit-nullable) - Update phpunit.xml.dist to reference bootstrap, use PHPUnit 11.5 schema, and ignore indirect deprecations - Note Laravel 13 support in README
15 lines
554 B
PHP
15 lines
554 B
PHP
<?php
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
// Suppress PHP 8.4 deprecation notices that originate from vendor code.
|
|
// These are typically from third-party packages (e.g. Mockery) that have not
|
|
// yet updated implicit-nullable parameter signatures and are not actionable here.
|
|
set_error_handler(static function (int $errno, string $errstr, string $errfile): bool {
|
|
if ($errno === E_DEPRECATED && str_contains($errfile, DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR)) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}, E_DEPRECATED);
|