Skip to content

Commit a79974b

Browse files
committed
add PHP 8.5 support
1 parent e09160f commit a79974b

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- php-85
78
pull_request:
89

910
env:
@@ -22,6 +23,7 @@ jobs:
2223
- "8.2"
2324
- "8.3"
2425
- "8.4"
26+
- "8.5"
2527
memcached-version:
2628
- "1.6"
2729

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 (!empty($option->getShortcut()) && isset($this->shortcuts[$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)