Skip to content

Commit af46fd4

Browse files
committed
Prevent "Implicitly marking parameter $version as nullable is deprecated" warning
Fixes #29
1 parent 965e6cc commit af46fd4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ AWS Lambda change log
33

44
## ?.?.? / ????-??-??
55

6+
* Fixed issue #29: Implicitly marking parameter as nullable is deprecated
7+
(@thekid)
8+
69
## 7.0.0 / 2026-02-14
710

811
This major release migrates to Amazon Linux 2023. Amazon Linux 2 end of

src/main/php/xp/lambda/Runner.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
* Packaging will always include the `vendor` directory automatically.
4545
*/
4646
class Runner {
47-
const PHP_RELEASES = 'https://www.php.net/releases/';
47+
const PHP_RELEASES= 'https://www.php.net/releases/';
4848

4949
/** Fetches JSON for a given URL */
5050
private static function fetch(string $query) {
5151
return Json::read(new StreamInput((new HttpConnection(self::PHP_RELEASES.'?'.$query))->get()->in()));
5252
}
5353

5454
/** Resolves the PHP version */
55-
private static function resolve(string $version= null): string {
55+
private static function resolve(?string $version= null): string {
5656
if (null === $version) {
5757
$select= ['version' => PHP_VERSION];
5858
} else if ('latest' === $version) {

0 commit comments

Comments
 (0)