Skip to content

Commit 158558a

Browse files
Merge pull request #5 from peterschade/main
Fix: Implicitly marking parameter $arr as nullable is deprecated
2 parents b4adab4 + 402972b commit 158558a

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
name: build
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
inputs:
8+
php_version:
9+
description: 'PHP version to run'
10+
required: false
11+
default: '8.3'
412

513
jobs:
614
run:
715
runs-on: ${{ matrix.operating-system }}
816
strategy:
917
matrix:
1018
operating-system: [ubuntu-latest]
11-
php-versions: ['8.0', '8.1', '8.2']
19+
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
1220
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1321

1422
steps:
@@ -38,4 +46,4 @@ jobs:
3846
run: composer install --prefer-dist --no-progress --no-suggest
3947

4048
- name: Run test suite
41-
run: vendor/bin/phpunit
49+
run: vendor/bin/phpunit

src/helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @param array|null $arr Original Array
99
* @return Raggitech\DotArray\DotArray
1010
*/
11-
function dot(array $arr = NULL)
11+
function dot(?array $arr = NULL)
1212
{
1313
return new DotArray($arr);
1414
}

0 commit comments

Comments
 (0)