Skip to content

Commit 9d92126

Browse files
authored
Merge pull request #15 from vemaeg/feature/php-8.2-changes
Feature/php 8.2 changes
2 parents 63f1191 + 13bfee2 commit 9d92126

12 files changed

+31
-15
lines changed
File renamed without changes.

.github/workflows/continuous-integration.yml

+1
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
memcached-version:
2425
- "1.6"
2526

docker-compose.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ services:
129129
php74:
130130
<<: *services_php54
131131
build:
132-
context: .docker/php74_81
132+
context: .docker/php74_82
133133
args:
134134
PHP_VERSION: '7.4'
135135
MEMCACHE_VERSION: '4.0.5.2'
@@ -139,7 +139,7 @@ services:
139139
php80:
140140
<<: *services_php54
141141
build:
142-
context: .docker/php74_81
142+
context: .docker/php74_82
143143
args:
144144
PHP_VERSION: '8.0'
145145
MEMCACHE_VERSION: '8.0'
@@ -149,12 +149,21 @@ services:
149149
php81:
150150
<<: *services_php54
151151
build:
152-
context: .docker/php74_81
152+
context: .docker/php74_82
153153
args:
154154
PHP_VERSION: '8.1'
155155
MEMCACHE_VERSION: '8.0'
156156
APCU_VERSION: ''
157157

158+
php82:
159+
<<: *services_php54
160+
build:
161+
context: .docker/php74_82
162+
args:
163+
PHP_VERSION: '8.2'
164+
MEMCACHE_VERSION: '8.0'
165+
APCU_VERSION: ''
166+
158167

159168
db:
160169
image: mysql:5.5.62

lib/command/sfAnsiColorFormatter.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function formatSection($section, $text, $size = null, $style = 'INFO')
100100
$style = array_key_exists($style, $this->styles) ? $style : 'INFO';
101101
$width = 9 + strlen($this->format('', $style));
102102

103-
return sprintf(">> %-${width}s %s", $this->format($section, $style), $this->excerpt($text, $size - 4 - (strlen($section) > 9 ? strlen($section) : 9)));
103+
return sprintf(">> %-{$width}s %s", $this->format($section, $style), $this->excerpt($text, $size - 4 - (strlen($section) > 9 ? strlen($section) : 9)));
104104
}
105105

106106
/**

lib/plugins/sfDoctrinePlugin/lib/database/sfDoctrineConnectionListener.class.php

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
*/
2121
class sfDoctrineConnectionListener extends Doctrine_EventListener
2222
{
23+
protected
24+
$connection,
25+
$encoding;
26+
2327
public function __construct($connection, $encoding)
2428
{
2529
$this->connection = $connection;

lib/routing/sfRoute.class.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
* @subpackage routing
1616
* @author Fabien Potencier <[email protected]>
1717
* @version SVN: $Id$
18-
*
19-
* @property $firstOptional int
20-
* @property $segments array
2118
*/
2219
class sfRoute implements Serializable
2320
{
@@ -37,7 +34,9 @@ class sfRoute implements Serializable
3734
$defaults = array(),
3835
$requirements = array(),
3936
$tokens = array(),
40-
$customToken = false;
37+
$customToken = false,
38+
$firstOptional = null,
39+
$segments = array();
4140

4241
/**
4342
* Constructor.

lib/task/help/sfHelpTask.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected function outputAsText(sfTask $task)
9696
foreach ($task->getArguments() as $argument)
9797
{
9898
$default = null !== $argument->getDefault() && (!is_array($argument->getDefault()) || count($argument->getDefault())) ? $this->formatter->format(sprintf(' (default: %s)', is_array($argument->getDefault()) ? str_replace("\n", '', print_r($argument->getDefault(), true)): $argument->getDefault()), 'COMMENT') : '';
99-
$messages[] = sprintf(" %-${max}s %s%s", $this->formatter->format($argument->getName(), 'INFO'), $argument->getHelp(), $default);
99+
$messages[] = sprintf(" %-{$max}s %s%s", $this->formatter->format($argument->getName(), 'INFO'), $argument->getHelp(), $default);
100100
}
101101

102102
$messages[] = '';

lib/task/help/sfListTask.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function outputAsText($namespace, $tasks)
120120

121121
$aliases = $task->getAliases() ? $this->formatter->format(' ('.implode(', ', $task->getAliases()).')', 'COMMENT') : '';
122122

123-
$messages[] = sprintf(" %-${width}s %s%s", $this->formatter->format(':'.$task->getName(), 'INFO'), $task->getBriefDescription(), $aliases);
123+
$messages[] = sprintf(" %-{$width}s %s%s", $this->formatter->format(':'.$task->getName(), 'INFO'), $task->getBriefDescription(), $aliases);
124124
}
125125

126126
$this->log($messages);

lib/task/project/sfProjectPermissionsTask.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected function chmod($file, $mode, $umask = 0000)
112112
*
113113
* @see http://www.php.net/set_error_handler
114114
*/
115-
public function handleError($no, $string, $file, $line, $context)
115+
public function handleError($no, $string, $file, $line, $context = null)
116116
{
117117
$this->failed[] = $this->current;
118118
}

lib/task/sfBaseTask.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ abstract class sfBaseTask extends sfCommandApplicationTask
2121
protected
2222
$configuration = null,
2323
$pluginManager = null,
24-
$statusStartTime = null;
24+
$statusStartTime = null,
25+
$filesystem = null,
26+
$tokens = array();
2527

2628
/**
2729
* @see sfTask

lib/util/sfBrowser.class.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class sfBrowser extends sfBrowserBase
2121
protected
2222
$listeners = array(),
2323
$context = null,
24-
$currentException = null;
24+
$currentException = null,
25+
$rawConfiguration = array();
2526

2627
/**
2728
* Calls a request to a uri.

lib/yaml/sfYamlInline.class.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static protected function dumpArray($value)
168168
*/
169169
static public function parseScalar($scalar, $delimiters = null, $stringDelimiters = array('"', "'"), &$i = 0, $evaluate = true)
170170
{
171-
if (in_array($scalar[$i], $stringDelimiters))
171+
if (is_string($scalar) && in_array($scalar[$i], $stringDelimiters))
172172
{
173173
// quoted scalar
174174
$output = self::parseQuotedScalar($scalar, $i);
@@ -272,7 +272,7 @@ static protected function parseSequence($sequence, &$i = 0)
272272
$isQuoted = in_array($sequence[$i], array('"', "'"));
273273
$value = self::parseScalar($sequence, array(',', ']'), array('"', "'"), $i);
274274

275-
if (!$isQuoted && false !== strpos($value, ': '))
275+
if (!$isQuoted && false !== strpos((string) $value, ': '))
276276
{
277277
// embedded mapping?
278278
try

0 commit comments

Comments
 (0)