We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b66960 + d09ada4 commit a6b2f4fCopy full SHA for a6b2f4f
README.md
@@ -31,7 +31,7 @@ class DummyObject implements ToArrayInterface {
31
*
32
* @return array
33
*/
34
- public function toArray() {
+ public function toArray(): array {
35
return array(
36
'hash' => sha1(time())
37
);
composer.json
@@ -19,6 +19,6 @@
19
}
20
},
21
"require": {
22
- "php": ">=5.0"
+ "php": ">=7.0"
23
24
src/ToArrayInterface.php
@@ -1,4 +1,5 @@
1
<?php
2
+declare(strict_types=1);
3
4
namespace Imponeer;
5
@@ -7,12 +8,10 @@
7
8
9
interface ToArrayInterface
10
{
-
11
/**
12
* Converts object to array
13
14
15
16
- public function toArray();
17
18
-}
+ public function toArray(): array;
+}
0 commit comments