Skip to content

Commit 7d09668

Browse files
committed
add PHP 8.5 support
1 parent d9857cb commit 7d09668

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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)