Skip to content

Commit 1f1d7c4

Browse files
committed
PHP 8.4
1 parent 91740fc commit 1f1d7c4

25 files changed

+3497
-1047
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
operating-system: [ubuntu-latest]
16-
php-versions: ["7.4", "8.0", "8.1", "8.2", "8.3"]
16+
php-versions: ["8.1", "8.2", "8.3", "8.4"]
1717
composer-args: ["", "--prefer-lowest"]
1818
runs-on: ${{ matrix.operating-system }}
1919
steps:
@@ -40,7 +40,7 @@ jobs:
4040
- name: Test
4141
run: composer test-with-coverage
4242
- name: Upload Coverage
43-
uses: codecov/codecov-action@v4
43+
uses: codecov/codecov-action@v5
4444
env:
4545
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4646
with:

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
}
3838
],
3939
"require": {
40-
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
40+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
4141
"ext-pdo": "*",
42-
"symfony/yaml": "^3.4 || ^4.1 || ^5.0 || ^6.0 || ^7.0"
42+
"symfony/yaml": "^5.0 || ^6.0 || ^7.0"
4343
},
4444
"require-dev": {
4545
"phpunit/php-code-coverage": "^9.1.10",
46-
"friendsofphp/php-cs-fixer": "^3.51.0",
47-
"phpstan/phpstan": "1.11.3",
48-
"vimeo/psalm": "5.24.0"
46+
"friendsofphp/php-cs-fixer": "^3.75.0",
47+
"phpstan/phpstan": "2.1.17",
48+
"vimeo/psalm": "6.11.0"
4949
},
5050
"scripts": {
5151
"test": "cd tests && php run.php",

lib/Doctrine/Cli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Doctrine_Cli
7474
* @param array $config
7575
* @param Doctrine_Cli_Formatter|null $formatter Doctrine_Cli_Formatter
7676
*/
77-
public function __construct(array $config = array(), Doctrine_Cli_Formatter $formatter = null)
77+
public function __construct(array $config = array(), ?Doctrine_Cli_Formatter $formatter = null)
7878
{
7979
$this->setConfig($config);
8080
$this->setFormatter($formatter ? $formatter : new Doctrine_Cli_AnsiColorFormatter());

lib/Doctrine/Collection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ protected function compareRecords($a, $b)
932932
* @param bool $processDiff
933933
* @return $this
934934
*/
935-
public function save(Doctrine_Connection $conn = null, $processDiff = true)
935+
public function save(?Doctrine_Connection $conn = null, $processDiff = true)
936936
{
937937
if ($conn == null) {
938938
$conn = $this->_table->getConnection();
@@ -968,7 +968,7 @@ public function save(Doctrine_Connection $conn = null, $processDiff = true)
968968
* @param bool $processDiff
969969
* @return $this
970970
*/
971-
public function replace(Doctrine_Connection $conn = null, $processDiff = true)
971+
public function replace(?Doctrine_Connection $conn = null, $processDiff = true)
972972
{
973973
if ($conn == null) {
974974
$conn = $this->_table->getConnection();
@@ -1002,7 +1002,7 @@ public function replace(Doctrine_Connection $conn = null, $processDiff = true)
10021002
* @param bool $clearColl
10031003
* @return $this
10041004
*/
1005-
public function delete(Doctrine_Connection $conn = null, $clearColl = true)
1005+
public function delete(?Doctrine_Connection $conn = null, $clearColl = true)
10061006
{
10071007
if ($conn == null) {
10081008
$conn = $this->_table->getConnection();

lib/Doctrine/Connection/Mssql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function quoteIdentifier($str, $checkOption = false)
142142
* @link http://lists.bestpractical.com/pipermail/rt-devel/2005-June/007339.html
143143
* @return string
144144
*/
145-
public function modifyLimitQuery($query, $limit = false, $offset = false, $isManip = false, $isSubQuery = false, Doctrine_Query $queryOrigin = null)
145+
public function modifyLimitQuery($query, $limit = false, $offset = false, $isManip = false, $isSubQuery = false, ?Doctrine_Query $queryOrigin = null)
146146
{
147147
if ($limit === false || !($limit > 0)) {
148148
return $query;

lib/Doctrine/Locator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Doctrine_Locator implements Countable, IteratorAggregate
5656
* @param array $defaults
5757
* @return void
5858
*/
59-
public function __construct(array $defaults = null)
59+
public function __construct(?array $defaults = null)
6060
{
6161
if (null !== $defaults) {
6262
foreach ($defaults as $name => $resource) {

lib/Doctrine/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2251,7 +2251,7 @@ public function query($query, $params = array(), $hydrationMode = null)
22512251
*
22522252
* @return Doctrine_Query Copy of the Doctrine_Query instance.
22532253
*/
2254-
public function copy(Doctrine_Query $query = null)
2254+
public function copy(?Doctrine_Query $query = null)
22552255
{
22562256
if (! $query) {
22572257
$query = $this;

lib/Doctrine/Query/Abstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ abstract class Doctrine_Query_Abstract
298298
* @param Doctrine_Hydrator_Abstract|null $hydrator The hydrator that will be used for generating result sets.
299299
*/
300300
public function __construct(
301-
Doctrine_Connection $connection = null,
302-
Doctrine_Hydrator_Abstract $hydrator = null
301+
?Doctrine_Connection $connection = null,
302+
?Doctrine_Hydrator_Abstract $hydrator = null
303303
) {
304304
if ($connection === null) {
305305
$connection = Doctrine_Manager::getInstance()->getCurrentConnection();

lib/Doctrine/Query/Part.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ abstract class Doctrine_Query_Part
4545
/**
4646
* @param Doctrine_Query $query the query object associated with this parser
4747
*/
48-
public function __construct($query, Doctrine_Query_Tokenizer $tokenizer = null)
48+
public function __construct($query, ?Doctrine_Query_Tokenizer $tokenizer = null)
4949
{
5050
$this->query = $query;
5151

lib/Doctrine/RawSql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Doctrine_RawSql extends Doctrine_Query_Abstract
5555
* @param Doctrine_Connection $connection The connection object the query will use.
5656
* @param Doctrine_Hydrator_Abstract $hydrator The hydrator that will be used for generating result sets.
5757
*/
58-
public function __construct(Doctrine_Connection $connection = null, Doctrine_Hydrator_Abstract $hydrator = null)
58+
public function __construct(?Doctrine_Connection $connection = null, ?Doctrine_Hydrator_Abstract $hydrator = null)
5959
{
6060
parent::__construct($connection, $hydrator);
6161

0 commit comments

Comments
 (0)