Skip to content

Commit 4fdd79f

Browse files
Removed property type hints for PHP 7.3 compatibility (#5)
* Removed all property type hints * Added PHP 7.3 to test matrix
1 parent d563c83 commit 4fdd79f

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: true
1212
matrix:
1313
os: [ubuntu-latest, windows-latest]
14-
php: [8.0, 7.4]
14+
php: [8.0, 7.4, 7.3]
1515
stability: [prefer-lowest, prefer-stable]
1616

1717
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

src/Card.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Card implements Arrayable
1515
*
1616
* @var array
1717
*/
18-
protected array $payload = [
18+
protected $payload = [
1919
'sections' => [],
2020
];
2121

src/Components/Button/AbstractButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstract class AbstractButton implements Arrayable
1212
*
1313
* @var array
1414
*/
15-
protected array $payload = [];
15+
protected $payload = [];
1616

1717
/**
1818
* Set the onClick url.

src/GoogleChatMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ class GoogleChatMessage implements Arrayable
1515
*
1616
* @var array
1717
*/
18-
protected array $payload = [];
18+
protected $payload = [];
1919

2020
/**
2121
* The Space's webhook URL where this message should be sent.
2222
*
2323
* @var string|null
2424
*/
25-
protected ?string $endpoint = null;
25+
protected $endpoint = null;
2626

2727
/**
2828
* Set a specific space's webhook URL where this message should be sent to.

src/Section.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Section implements Arrayable
1616
*
1717
* @var array
1818
*/
19-
protected array $payload = [
19+
protected $payload = [
2020
'widgets' => [],
2121
];
2222

src/Widgets/AbstractWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstract class AbstractWidget implements Arrayable
1212
*
1313
* @var array
1414
*/
15-
protected array $payload = [];
15+
protected $payload = [];
1616

1717
/**
1818
* Serialize the widget to an array representation.

0 commit comments

Comments
 (0)