From a96f43360a9f7405dec0d1ccc4b2ace8a0a7e93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kone=C4=8Dn=C3=BD?= Date: Fri, 13 Oct 2017 23:19:54 +0200 Subject: [PATCH 1/2] Travis: test PHP 7.2 --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index d2e0af6..0c2a0e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ php: - 5.6 - 7.0 - 7.1 + - 7.2 services: - mysql @@ -15,6 +16,10 @@ env: - DB=pgsql RUNLEVEL=0 - DB=pgsql RUNLEVEL=10 +matrix: + allow_failures: + - php: 7.2 + before_script: - composer selfupdate --no-progress - travis_retry composer install --prefer-dist From aa056ba1c51f04e6038c9a5988b077779e63005f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kone=C4=8Dn=C3=BD?= Date: Fri, 13 Oct 2017 13:04:16 +0200 Subject: [PATCH 2/2] use trait Nette\SmartObject --- src/ContainerFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ContainerFactory.php b/src/ContainerFactory.php index 24ad7da..ff1910d 100644 --- a/src/ContainerFactory.php +++ b/src/ContainerFactory.php @@ -5,8 +5,9 @@ /** * @internal */ -class ContainerFactory extends \Nette\Object +class ContainerFactory { + use \Nette\SmartObject; private static $container;