Skip to content

Commit

Permalink
More PHP8.2 guardian courtesy of Chris F.
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Mar 14, 2024
1 parent 26a6332 commit 7962384
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

"nesbot/carbon" : "2.68.1",

"tsugi/lib": "dev-master#7bdf0734159a17999d841c23d66b875a2818bb90",
"tsugi/lib": "dev-master#aeb0dfef1eb2c28fead9fcfdb806258d9d6820e1",
"koseu/lib": "dev-master#70c7ac1ca413c2dd541e078ebe07719405621b1b"
},
"config": {
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -7511,12 +7511,12 @@
"source": {
"type": "git",
"url": "https://github.com/tsugiproject/tsugi-php.git",
"reference": "7bdf0734159a17999d841c23d66b875a2818bb90"
"reference": "aeb0dfef1eb2c28fead9fcfdb806258d9d6820e1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tsugiproject/tsugi-php/zipball/7bdf0734159a17999d841c23d66b875a2818bb90",
"reference": "7bdf0734159a17999d841c23d66b875a2818bb90",
"url": "https://api.github.com/repos/tsugiproject/tsugi-php/zipball/aeb0dfef1eb2c28fead9fcfdb806258d9d6820e1",
"reference": "aeb0dfef1eb2c28fead9fcfdb806258d9d6820e1",
"shasum": ""
},
"require": {
Expand All @@ -7529,7 +7529,7 @@
"phpunit/php-timer": "v5.0.3",
"phpunit/phpunit": "9.*"
},
"time": "2024-02-25T01:08:32+00:00",
"time": "2024-03-14T14:02:34+00:00",
"default-branch": true,
"type": "library",
"installation-source": "dist",
Expand Down
6 changes: 3 additions & 3 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'cd8d2a51a97601791f15581ec52750b34c2e8be7',
'reference' => '26a6332d1e804f383f27d08fd2b37eb48c17491a',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'cd8d2a51a97601791f15581ec52750b34c2e8be7',
'reference' => '26a6332d1e804f383f27d08fd2b37eb48c17491a',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -1045,7 +1045,7 @@
'tsugi/lib' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '7bdf0734159a17999d841c23d66b875a2818bb90',
'reference' => 'aeb0dfef1eb2c28fead9fcfdb806258d9d6820e1',
'type' => 'library',
'install_path' => __DIR__ . '/../tsugi/lib',
'aliases' => array(
Expand Down
1 change: 1 addition & 0 deletions vendor/tsugi/lib/src/Util/U.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ public static function success_out($output) {
// http://stackoverflow.com/questions/834303/startswith-and-endswith-public static functions-in-php
public static function startsWith($haystack, $needle) {
// search backwards starting from haystack length characters from the end
if ( !is_string($haystack) || !is_string($needle) ) return false;
return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== FALSE;
}

Expand Down

0 comments on commit 7962384

Please sign in to comment.