Skip to content

Commit 05024d0

Browse files
committed
add PHP 8.5 support
1 parent d9857cb commit 05024d0

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- "8.2"
2323
- "8.3"
2424
- "8.4"
25+
- "8.5"
2526
memcached-version:
2627
- "1.6"
2728

lib/command/sfCommandOptionSet.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function addOption(sfCommandOption $option)
6464
if (isset($this->options[$option->getName()])) {
6565
throw new sfCommandException(sprintf('An option named "%s" already exist.', $option->getName()));
6666
}
67-
if (isset($this->shortcuts[$option->getShortcut()])) {
67+
if (isset($this->shortcuts[(string) $option->getShortcut()])) {
6868
throw new sfCommandException(sprintf('An option with shortcut "%s" already exist.', $option->getShortcut()));
6969
}
7070

lib/plugins/sfDoctrinePlugin/data/generator/sfDoctrineModule/admin/parts/paginationConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ public function getPagerClass()
66

77
public function getPagerMaxPerPage()
88
{
9-
return <?php echo isset($this->config['list']['max_per_page']) ? (integer) $this->config['list']['max_per_page'] : 20 ?>;
9+
return <?php echo isset($this->config['list']['max_per_page']) ? (int) $this->config['list']['max_per_page'] : 20 ?>;
1010
<?php unset($this->config['list']['max_per_page']) ?>
1111
}

lib/vendor/lime/lime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function ok($exp, $message = '')
169169
{
170170
$this->update_stats();
171171

172-
if ($result = (boolean) $exp)
172+
if ($result = (bool) $exp)
173173
{
174174
$this->results['stats']['passed'][] = $this->test_nb;
175175
}

0 commit comments

Comments
 (0)