Skip to content

Commit 0ee6863

Browse files
authored
Merge pull request #91 from vemaeg/feature/php-8.2-changes
Add(php) Add PHP 8.2 support
2 parents 6ff2997 + 0241c0b commit 0ee6863

31 files changed

+84
-15
lines changed
File renamed without changes.

.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

2425
steps:
2526
- name: "Checkout"

docker-compose.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,24 +103,31 @@ services:
103103
php74:
104104
<<: *services_php54
105105
build:
106-
context: .docker/php74_81
106+
context: .docker/php74_82
107107
args:
108108
PHP_VERSION: '7.4'
109109

110110
php80:
111111
<<: *services_php54
112112
build:
113-
context: .docker/php74_81
113+
context: .docker/php74_82
114114
args:
115115
PHP_VERSION: '8.0'
116116

117117
php81:
118118
<<: *services_php54
119119
build:
120-
context: .docker/php74_81
120+
context: .docker/php74_82
121121
args:
122122
PHP_VERSION: '8.1'
123123

124+
php82:
125+
<<: *services_php54
126+
build:
127+
context: .docker/php74_82
128+
args:
129+
PHP_VERSION: '8.2'
130+
124131
db:
125132
image: mysql:5.5.62
126133
environment:

lib/Doctrine/Cli/AnsiColorFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function formatSection($section, $text, $size = null)
115115
{
116116
$width = 9 + strlen($this->format('', 'INFO'));
117117

118-
return sprintf(">> %-${width}s %s", $this->format($section, 'INFO'), $this->excerpt($text, $size));
118+
return sprintf(">> %-{$width}s %s", $this->format($section, 'INFO'), $this->excerpt($text, $size));
119119
}
120120

121121
/**

lib/Doctrine/Connection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
188188
*/
189189
protected $_tableCache;
190190
protected $_tableCacheTTL;
191+
protected $exported;
191192

192193
/**
193194
* the constructor

lib/Doctrine/Hydrator/Graph.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
*/
3636
abstract class Doctrine_Hydrator_Graph extends Doctrine_Hydrator_Abstract
3737
{
38-
protected $_tables = array();
38+
protected
39+
$_tables = array(),
40+
$_rootAlias = null;
3941

4042
/**
4143
* Gets the custom field used for indexing for the specified component alias.

lib/Doctrine/Import/Builder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* @author Nicolas Bérard-Nault <[email protected]>
3737
* @author Jonathan H. Wage <[email protected]>
3838
*/
39+
#[\AllowDynamicProperties]
3940
class Doctrine_Import_Builder extends Doctrine_Builder
4041
{
4142
/**

lib/Doctrine/Manager.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ protected function _buildDsnPartsArray($dsn)
411411
// silence any warnings
412412
$parts = @parse_url($dsn);
413413

414+
if ($parts === false) {
415+
$parts = array();
416+
}
417+
414418
$names = array('dsn', 'scheme', 'host', 'port', 'user', 'pass', 'path', 'query', 'fragment');
415419

416420
foreach ($names as $name) {

lib/Doctrine/Query.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,6 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
160160
*/
161161
protected $_parsers = array();
162162

163-
/**
164-
* @var array $_pendingJoinConditions an array containing pending joins
165-
*/
166-
protected $_pendingJoinConditions = array();
167-
168163
/**
169164
* @var array
170165
*/

lib/Doctrine/Query/Abstract.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ abstract class Doctrine_Query_Abstract
267267
*/
268268
protected $_preQueried = false;
269269

270+
/**
271+
* @var array $_pendingJoinConditions an array containing pending joins
272+
*/
273+
protected $_pendingJoinConditions = array();
274+
270275
/**
271276
* Fix for http://www.doctrine-project.org/jira/browse/DC-701
272277
*

0 commit comments

Comments
 (0)