Skip to content

Commit 19fa10a

Browse files
Updated dependencies (#66)
* Updated dependencies * Support Symfony 8
1 parent ca283ad commit 19fa10a

13 files changed

Lines changed: 81 additions & 85 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
php-version:
24-
- 8.2
25-
- 8.3
2624
- 8.4
2725
- 8.5
2826
symfony-version:
2927
- 6.4.*
3028
- 7.4.*
29+
- 8.0.*
3130
dependencies: [lowest, highest]
3231
name: 'PHP ${{ matrix.php-version }} + Symfony ${{ matrix.symfony-version }} + ${{ matrix.dependencies }} dependencies'
3332

composer.json

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,43 @@
1414
}
1515
],
1616
"require": {
17-
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
17+
"php": "~8.4.0 || ~8.5.0",
1818
"ext-dom": "*",
1919
"ext-json": "*",
20-
"azjezz/psl": "^2.9.1 || ^3.0.0 || ^4.0.0",
21-
"coduo/php-matcher": "^6.0.15",
22-
"dama/doctrine-test-bundle": "^7.3.0 || ^8.0.1",
23-
"doctrine/data-fixtures": "^1.7.0 || ^2.0.0",
24-
"doctrine/dbal": "^3.9.0 || ^4.0.2",
25-
"doctrine/doctrine-fixtures-bundle": "^3.7.1 || ^4.0.0",
26-
"doctrine/orm": "^2.20.0 || ^3.2.0",
27-
"phpunit/phpunit": "^10.5 || ^11.5 || ^12.0",
28-
"symfony/browser-kit": "^6.4 || ^7.2",
29-
"symfony/css-selector": "^6.4 || ^7.2",
30-
"symfony/dependency-injection": "^6.4 || ^7.2",
31-
"symfony/framework-bundle": "^6.4 || ^7.2",
32-
"symfony/polyfill-php83": "^1.31"
20+
"azjezz/psl": "^3.3.0 || ^4.0.0",
21+
"coduo/php-matcher": "^6.0.18",
22+
"dama/doctrine-test-bundle": "^8.4",
23+
"doctrine/data-fixtures": "^2.1.0",
24+
"doctrine/dbal": "^3.10.0 || ^4.2.0",
25+
"doctrine/doctrine-fixtures-bundle": "^3.7.3 || ^4.3.1",
26+
"doctrine/orm": "^2.20.9 || ^3.5.0",
27+
"phpunit/phpunit": "^12.4",
28+
"symfony/browser-kit": "^6.4 || ^7.4 || ^8.0",
29+
"symfony/css-selector": "^6.4 || ^7.4 || ^8.0",
30+
"symfony/dependency-injection": "^6.4 || ^7.4 || ^8.0",
31+
"symfony/framework-bundle": "^6.4 || ^7.4 || ^8.0"
3332
},
3433
"require-dev": {
3534
"ext-imagick": "*",
3635
"ext-intl": "*",
37-
"doctrine/coding-standard": "^12.0.0",
36+
"doctrine/coding-standard": "^14.0.0",
3837
"ergebnis/composer-normalize": "^2.48.2",
3938
"mikey179/vfsstream": "^1.6.12",
40-
"moneyphp/money": "^4.7.1",
41-
"nesbot/carbon": "^3.10.3",
42-
"php-standard-library/phpstan-extension": "^2.0.1",
39+
"moneyphp/money": "^4.8.0",
40+
"nesbot/carbon": "^3.11.0",
41+
"php-standard-library/phpstan-extension": "^2.0.2",
4342
"phpstan/phpstan": "<=2.1.12",
4443
"phpstan/phpstan-phpunit": "^2.0.6",
4544
"phpstan/phpstan-strict-rules": "^2.0.6",
4645
"phpstan/phpstan-symfony": "^2.0.4",
4746
"spatie/pdf-to-image": "^3.1.0",
48-
"spatie/pdf-to-text": "^1.54.1",
49-
"squizlabs/php_codesniffer": "^3.13.4",
50-
"symfony/clock": "^6.4 || ^7.2",
51-
"symfony/console": "^6.4 || ^7.2",
52-
"symfony/form": "^6.4 || ^7.2",
53-
"symfony/security-core": "^6.4 || ^7.2",
54-
"symfony/validator": "^6.4 || ^7.2",
55-
"twig/twig": "^3.21.1"
47+
"spatie/pdf-to-text": "^1.54.0",
48+
"symfony/clock": "^6.4 || ^7.4 || ^8.0",
49+
"symfony/console": "^6.4 || ^7.4 || ^8.0",
50+
"symfony/form": "^6.4 || ^7.4 || ^8.0",
51+
"symfony/security-core": "^6.4 || ^7.4 || ^8.0",
52+
"symfony/validator": "^6.4 || ^7.4 || ^8.0",
53+
"twig/twig": "^3.22.2"
5654
},
5755
"conflict": {
5856
"spatie/pdf-to-image": "<3.0.0",

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
bootstrap="vendor/autoload.php"
55
failOnWarning="false"
66
failOnIncomplete="false"
7+
displayDetailsOnPhpunitNotices="true"
78
cacheResult="false"
89
cacheDirectory=".phpunit.cache">
910
<testsuites>

src/DependencyInjection/Speicher210FunctionalTestExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ final class Speicher210FunctionalTestExtension extends ConfigurableExtension
1717
*/
1818
public function loadInternal(array $mergedConfig, ContainerBuilder $container): void
1919
{
20-
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
21-
$loader->load('services.xml');
20+
$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
21+
$loader->load('services.php');
2222

2323
$container
2424
->getDefinition(TestStubCreateCommand::class)

src/Resources/config/services.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Speicher210\FunctionalTestBundle\Command\TestStubCreateCommand;
6+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
7+
8+
return static function (ContainerConfigurator $configurator): void {
9+
$services = $configurator->services();
10+
11+
$services->set(TestStubCreateCommand::class)
12+
->tag('console.command');
13+
};

src/Resources/config/services.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/SnapshotUpdater/Driver/Json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
final class Json implements Driver
3030
{
31-
public const DEFAULT_MATCHER_PATTERNS = [
31+
public const array DEFAULT_MATCHER_PATTERNS = [
3232
'@string@',
3333
'@integer@',
3434
'@number@',

src/Test/Assert/Pdf/PdfToImageConfiguration.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66

77
use Spatie\PdfToImage\Enums\OutputFormat;
88

9-
final class PdfToImageConfiguration
9+
final readonly class PdfToImageConfiguration
1010
{
11-
private const DEFAULT_OUTPUT_FORMAT = OutputFormat::Jpg;
12-
private const DEFAULT_RESOLUTION = 144;
13-
private const DEFAULT_COMPRESSION_QUALITY = 50;
11+
private const OutputFormat DEFAULT_OUTPUT_FORMAT = OutputFormat::Jpg;
12+
private const int DEFAULT_RESOLUTION = 144;
13+
private const int DEFAULT_COMPRESSION_QUALITY = 50;
1414

1515
/**
1616
* @param positive-int $resolution
1717
* @param int<1,100> $compressionQuality
1818
*/
1919
private function __construct(
20-
public readonly OutputFormat $outputFormat,
21-
public readonly int $resolution,
22-
public readonly int $compressionQuality,
20+
public OutputFormat $outputFormat,
21+
public int $resolution,
22+
public int $compressionQuality,
2323
) {
2424
}
2525

src/Test/Doctrine/ORM/Query/AST/FunctionTestCase.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
use function method_exists;
1515

16-
use const PHP_VERSION_ID;
17-
1816
abstract class FunctionTestCase extends TestCase
1917
{
2018
/**
@@ -28,7 +26,7 @@ protected function getEntityManager(): EntityManager
2826
$configuration->setProxyDir(__DIR__ . '/Fixtures/Proxies');
2927
$configuration->setProxyNamespace(__NAMESPACE__ . '\Proxy');
3028
$configuration->setAutoGenerateProxyClasses(true);
31-
if (PHP_VERSION_ID >= 80400 && method_exists($configuration, 'enableNativeLazyObjects')) {
29+
if (method_exists($configuration, 'enableNativeLazyObjects')) {
3230
$configuration->enableNativeLazyObjects(true);
3331
}
3432

src/Test/RestControllerWebTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
abstract class RestControllerWebTestCase extends WebTestCase
3434
{
35-
public const AUTHENTICATION_NONE = null;
35+
public const null AUTHENTICATION_NONE = null;
3636

3737
/**
3838
* The authenticated user for the test.

0 commit comments

Comments
 (0)