Skip to content

Commit 195aa1f

Browse files
peter279ks3b4stian
authored andcommitted
Enhance stuffs
1 parent 0c3cfbd commit 195aa1f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: php
22
php:
33
- 7.1
44
- 7.2
5+
- 7.3
56

67
before_script:
78
- composer install

src/TypedArray.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ public function __construct(string $type, array $array = [])
8585
if (class_exists($type)) {
8686
//I like lambda functions ;)
8787
$this->allowedTypes[$type] = function ($a) use ($type) {
88-
if ($a instanceof $type) {
89-
return true;
90-
}
91-
return false;
88+
return $a instanceof $type;
9289
};
9390
}
9491

0 commit comments

Comments
 (0)