File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : " php"
22
33php :
4- - 5.6
5- - 7.0
64 - 7.1
7- - hhvm
85
96install :
107- " composer install"
Original file line number Diff line number Diff line change 11{
22 "name" : " moon-php/container" ,
3+ "description" : " A very simple Container with support for PSR-11" ,
34 "require" : {
4- "psr/container" : " ^1.0"
5+ "psr/container" : " ^1.0" ,
6+ "php" : " >=7.1"
57 },
68 "require-dev" : {
7- "phpunit/phpunit" : " ^5.6 "
9+ "phpunit/phpunit" : " ^6.1 "
810 },
911 "authors" : [
1012 {
1618 "psr-4" : {
1719 "Moon\\ Container\\ " : " src/"
1820 }
21+ },
22+ "autoload-dev" : {
23+ "psr-4" : {
24+ "Moon\\ Container\\ Unit\\ " : " tests/Unit/"
25+ }
1926 }
2027}
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public function get($alias)
7171 *
7272 * @return boolean
7373 */
74- public function has ($ alias )
74+ public function has ($ alias ): bool
7575 {
7676 if (!isset ($ this ->container [$ alias ])) {
7777 return false ;
Original file line number Diff line number Diff line change 44
55use Moon \Container \Container ;
66use Moon \Container \Exception \NotFoundException ;
7+ use PHPUnit \Framework \TestCase ;
78
8- class ContainerTest extends \PHPUnit_Framework_TestCase
9+ class ContainerTest extends TestCase
910{
1011 /**
1112 * Test that integer is added to container
You can’t perform that action at this time.
0 commit comments