Skip to content

Commit 540427d

Browse files
committed
Fix additional deprecations
1 parent 2c8598d commit 540427d

File tree

6 files changed

+22
-9
lines changed

6 files changed

+22
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Change Log
22
==========
33

4+
2025-04-12
5+
----------
6+
7+
* fix additional deprecations
8+
* switch to PHPUnit 11.X
9+
410
2024-12-01
511
----------
612

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
"symfony/framework-bundle": "^6.4|^7.0"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "^10.5",
23-
"symfony/phpunit-bridge": "^6.4",
24-
"symfony/stopwatch": "^6.4",
25-
"symfony/var-dumper": "^6.4",
26-
"symfony/yaml": "^6.4"
22+
"phpunit/phpunit": "^11.5",
23+
"symfony/phpunit-bridge": "^7.0",
24+
"symfony/stopwatch": "^7.0",
25+
"symfony/var-dumper": "^7.0",
26+
"symfony/yaml": "^7.0"
2727
},
2828
"autoload": {
2929
"psr-4": {

phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
33
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" colors="true"
5-
bootstrap="vendor/autoload.php" cacheDirectory=".phpunit.cache">
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd" backupGlobals="false" colors="true"
5+
bootstrap="tests/bootstrap.php" cacheDirectory=".phpunit.cache">
66
<php>
77
<ini name="error_reporting" value="-1"/>
88
<ini name="memory_limit" value="256M"/>

src/DependencyInjection/SomnambulistFractalExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class SomnambulistFractalExtension extends Extension
1212
{
1313
public const TRANSFORMER_TAG_NAME = 'somnambulist.fractal_bundle.transformer';
1414

15-
public function load(array $configs, ContainerBuilder $container)
15+
public function load(array $configs, ContainerBuilder $container): void
1616
{
1717
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
1818
$loader->load('services.xml');

tests/FractalBundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
use InvalidArgumentException;
66
use PHPUnit\Framework\TestCase;
7+
use Somnambulist\Bundles\FractalBundle\Tests\Fixtures\App;
78
use Somnambulist\Bundles\FractalBundle\Tests\Fixtures\Controller\BooksController;
89
use Symfony\Component\HttpFoundation\Request;
9-
use Somnambulist\Bundles\FractalBundle\Tests\Fixtures\App;
1010

1111
class FractalBundleTest extends TestCase
1212
{

tests/bootstrap.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php declare(strict_types=1);
2+
3+
require_once __DIR__ . '/../vendor/autoload.php';
4+
5+
use Symfony\Component\ErrorHandler\ErrorHandler;
6+
7+
ErrorHandler::register(null, false);

0 commit comments

Comments
 (0)