Skip to content

Commit f02a18b

Browse files
authored
Merge pull request #728 from rogervila/php-82-support
PHP 8.2 Support
2 parents 676b10c + 9960bd0 commit f02a18b

19 files changed

+38
-7
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
name: "Coding Standards"
1414
uses: "doctrine/.github/.github/workflows/coding-standards.yml@1.5.1"
1515
with:
16-
php-version: '8.1'
16+
php-version: '8.2'

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- "7.4"
2121
- "8.0"
2222
- "8.1"
23+
- "8.2"
2324
dbal-version:
2425
- "2.13.0"
2526
- "3.3.0"

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
name: "Static Analysis"
1414
uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.5.1"
1515
with:
16-
php-version: '8.1'
16+
php-version: '8.2'

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
}
5050
},
5151
"require": {
52-
"php": "^7.4 || ~8.0.0 || ~8.1.0",
52+
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
5353
"ext-json": "*",
5454
"doctrine/dbal": "^2.13.7 || ^3.3.2",
5555
"doctrine/doctrine-laminas-hydrator": "^3.0.0",
56-
"doctrine/doctrine-module": "^5.2.0",
56+
"doctrine/doctrine-module": "^5.3.0",
5757
"doctrine/event-manager": "^1.1.1",
5858
"doctrine/orm": "^2.11.1",
5959
"doctrine/persistence": "^2.3.0 || ^3.0.0",

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ parameters:
1515
-
1616
message: '#Parameter \#1 .* of method DoctrineORMModule\\Options\\Configuration.* stdClass given#'
1717
path: tests/Options/ConfigurationOptionsTest.php
18+
-
19+
message: '#Parameter \#1 .* of method Doctrine\\Common\\DataFixtures\\Executor\\ORMExecutor::execute\(\)#'
20+
path: tests/Paginator/AdapterTest.php
1821
includes:
1922
- vendor/phpstan/phpstan-phpunit/extension.neon
2023

psalm.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0"?>
22
<psalm
33
errorLevel="4"
4-
phpVersion="8.0"
54
resolveFromConfigFile="true"
65
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
76
xmlns="https://getpsalm.org/schema/config"

src/CliConfigurator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ private function getObjectManagerName(): string
129129
return $this->defaultObjectManagerName;
130130
}
131131

132+
/** @psalm-suppress ReservedWord */
132133
return $arguments->getParameterOption('--object-manager');
133134
}
134135

src/Module.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ static function (EventInterface $event): void {
5050
->getEventManager()
5151
->attach(
5252
ProfilerEvent::EVENT_PROFILER_INIT,
53+
/** @param EventInterface $event */
5354
static function ($event): void {
5455
$container = $event->getTarget()->getParam('ServiceManager');
5556
$container->get('doctrine.sql_logger_collector.orm_default');

src/Paginator/Adapter/DoctrinePaginator.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ public function getPaginator(): Paginator
5252
/**
5353
* {@inheritDoc}
5454
*
55-
* @psalm-return ArrayIterator<TKey, TValue>
55+
* @param int|null $offset
56+
* @param int|null $itemCountPerPage
57+
*
58+
* @return ArrayIterator<TKey, TValue>
59+
*
60+
* @psalm-suppress LessSpecificImplementedReturnType
5661
*/
5762
public function getItems($offset, $itemCountPerPage)
5863
{
@@ -70,7 +75,7 @@ public function count(): int
7075
}
7176

7277
/**
73-
* @return array{select: string, count_select: int}
78+
* @return array{select: list<string>|string, count_select: int}
7479
*/
7580
public function jsonSerialize(): array
7681
{

src/Service/ConfigurationFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ final class ConfigurationFactory extends DoctrineConfigurationFactory
2323
/**
2424
* {@inheritDoc}
2525
*
26+
* @param string $requestedName
27+
*
2628
* @return Configuration
2729
*/
2830
public function __invoke(ContainerInterface $serviceLocator, $requestedName, ?array $options = null)

src/Service/DBALConfigurationFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public function __construct(string $name)
3333
/**
3434
* {@inheritDoc}
3535
*
36+
* @param string $requestedName
37+
*
3638
* @return Configuration
3739
*/
3840
public function __invoke(ContainerInterface $serviceLocator, $requestedName, ?array $options = null)

src/Service/DBALConnectionFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ final class DBALConnectionFactory extends AbstractFactory
2525
/**
2626
* {@inheritDoc}
2727
*
28+
* @param string $requestedName
29+
*
2830
* @return Connection
2931
*/
3032
public function __invoke(ContainerInterface $serviceLocator, $requestedName, ?array $options = null)

src/Service/EntityManagerAliasCompatFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ final class EntityManagerAliasCompatFactory implements FactoryInterface
1919
* @deprecated this method was introduced to allow aliasing of service `Doctrine\ORM\EntityManager`
2020
* from `doctrine.entitymanager.orm_default`
2121
*
22+
* @param string $requestedName
23+
*
2224
* @return EntityManager
2325
*/
2426
public function __invoke(ContainerInterface $serviceLocator, $requestedName, ?array $options = null)

src/Service/EntityManagerFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ final class EntityManagerFactory extends AbstractFactory
1616
/**
1717
* {@inheritDoc}
1818
*
19+
* @param string $requestedName
20+
*
1921
* @return EntityManager
2022
*/
2123
public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)

src/Service/MappingCollectorFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ final class MappingCollectorFactory extends AbstractFactory
1717
/**
1818
* {@inheritDoc}
1919
*
20+
* @param string $requestedName
21+
*
2022
* @return MappingCollector
2123
*/
2224
public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)

src/Service/MigrationsCommandFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public function __construct(string $name)
5353
/**
5454
* {@inheritDoc}
5555
*
56+
* @param string $requestedName
57+
*
5658
* @return DoctrineCommand
5759
*
5860
* @throws InvalidArgumentException
@@ -109,6 +111,7 @@ private function getObjectManagerName(): string
109111
return $this->defaultObjectManagerName;
110112
}
111113

114+
/** @psalm-suppress ReservedWord */
112115
return $arguments->getParameterOption('--object-manager');
113116
}
114117
}

src/Service/ObjectMultiCheckboxFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ final class ObjectMultiCheckboxFactory implements FactoryInterface
1717
/**
1818
* {@inheritDoc}
1919
*
20+
* @param string $requestedName
21+
*
2022
* @return ObjectMultiCheckbox
2123
*/
2224
public function __invoke(ContainerInterface $serviceLocator, $requestedName, ?array $options = null)

src/Service/ObjectRadioFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ final class ObjectRadioFactory implements FactoryInterface
1717
/**
1818
* {@inheritDoc}
1919
*
20+
* @param string $requestedName
21+
*
2022
* @return ObjectRadio
2123
*/
2224
public function __invoke(ContainerInterface $serviceLocator, $requestedName, ?array $options = null)

src/Service/ObjectSelectFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ final class ObjectSelectFactory implements FactoryInterface
1717
/**
1818
* {@inheritDoc}
1919
*
20+
* @param string $requestedName
21+
*
2022
* @return ObjectSelect
2123
*/
2224
public function __invoke(ContainerInterface $serviceLocator, $requestedName, ?array $options = null)

0 commit comments

Comments
 (0)