Skip to content

Commit a8b6c32

Browse files
committed
Merged remote tracking branch 'upstream/master' into master
2 parents ef6ed6c + 998e779 commit a8b6c32

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
docker-compose.yml export-ignore
99
phpstan.neon export-ignore
1010
phpunit.xml export-ignore
11+
test/ export-ignore
1112
tests/ export-ignore

lib/config/sfConfigCache.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ public function import($config, $once = true, $optional = false)
157157
/**
158158
* Registers a configuration handler.
159159
*
160-
* @param string $handler The handler to use when parsing a configuration file
161-
* @param class $class A configuration handler class
162-
* @param string $params An array of options for the handler class initialization
160+
* @param string $handler The handler to use when parsing a configuration file
161+
* @param class-string<sfConfigHandler> $class A configuration handler class
162+
* @param string[] $params An array of options for the handler class initialization
163163
*/
164164
public function registerConfigHandler($handler, $class, $params = [])
165165
{

lib/helper/TextHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function simple_format_text($text, $options = [])
184184
{
185185
$css = (isset($options['class'])) ? ' class="'.$options['class'].'"' : '';
186186

187-
$text = preg_replace('/(\r\n|\r)/', "\n", $text); // lets make them newlines crossplatform
187+
$text = preg_replace('/(\r\n|\r)/', "\n", $text); // lets make them newlines crossplatform
188188
$text = preg_replace('/\n{2,}/', "</p><p{$css}>", $text); // turn two and more newlines into paragraph
189189

190190
// turn single newline into <br/>

lib/task/sfTask.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ protected function usageCloseToLimit($usage, $warning_when_remaining)
658658

659659
protected function convertIntToUnit($size)
660660
{
661-
$unit = ['b', 'kb', 'mb', 'gb', 'tb', 'pb'];
661+
$unit = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB'];
662662
$i = floor(log($size, 1024));
663663

664664
return @round($size / pow(1024, $i), 2)." {$unit[$i]}";

0 commit comments

Comments
 (0)