{"action":"created","issue":{"url":"https://api.github.com/repos/ice/framework/issues/126","repository_url":"https://api.github.com/repos/ice/framework","labels_url":"https://api.github.com/repos/ice/framework/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/ice/framework/issues/126/comments","events_url":"https://api.github.com/repos/ice/framework/issues/126/events","html_url":"https://github.com/ice/framework/issues/126","id":176188225,"number":126,"title":"\"\\ice\\Filter#add\" does not work on PHP7.0.9","user":{"login":"circle8z","id":16357323,"avatar_url":"https://avatars.githubusercontent.com/u/16357323?v=3","gravatar_id":"","url":"https://api.github.com/users/circle8z","html_url":"https://github.com/circle8z","followers_url":"https://api.github.com/users/circle8z/followers","following_url":"https://api.github.com/users/circle8z/following{/other_user}","gists_url":"https://api.github.com/users/circle8z/gists{/gist_id}","starred_url":"https://api.github.com/users/circle8z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/circle8z/subscriptions","organizations_url":"https://api.github.com/users/circle8z/orgs","repos_url":"https://api.github.com/users/circle8z/repos","events_url":"https://api.github.com/users/circle8z/events{/privacy}","received_events_url":"https://api.github.com/users/circle8z/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-10T16:28:59Z","updated_at":"2016-09-13T21:42:20Z","closed_at":null,"body":"`\\ice\\Filter#add` work properly on PHP7.0.7, but it does not work on PHP7.0.9.\r\nIce version is 1.2.0. Do you have any knowledge about this phenomenon?"},"comment":{"url":"https://api.github.com/repos/ice/framework/issues/comments/246834414","html_url":"https://github.com/ice/framework/issues/126#issuecomment-246834414","issue_url":"https://api.github.com/repos/ice/framework/issues/126","id":246834414,"user":{"login":"circle8z","id":16357323,"avatar_url":"https://avatars.githubusercontent.com/u/16357323?v=3","gravatar_id":"","url":"https://api.github.com/users/circle8z","html_url":"https://github.com/circle8z","followers_url":"https://api.github.com/users/circle8z/followers","following_url":"https://api.github.com/users/circle8z/following{/other_user}","gists_url":"https://api.github.com/users/circle8z/gists{/gist_id}","starred_url":"https://api.github.com/users/circle8z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/circle8z/subscriptions","organizations_url":"https://api.github.com/users/circle8z/orgs","repos_url":"https://api.github.com/users/circle8z/repos","events_url":"https://api.github.com/users/circle8z/events{/privacy}","received_events_url":"https://api.github.com/users/circle8z/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T21:42:20Z","updated_at":"2016-09-13T21:42:20Z","body":"```php\r\n<?php\r\n//...\r\nuse Ice\\Filter;\r\nuse App\\Extensions\\Filter\\Trim;\r\n\r\n//...\r\n    public function initialize()\r\n    {\r\n        // Register an autoloader\r\n        $this->registerLoader();\r\n\r\n        // Load the config\r\n        $config = new Ini(__ROOT__ . '/app/cfg/config.ini');\r\n//...\r\n        // Register services\r\n        $this->registerServices();\r\n//...\r\n        return $this;\r\n    }\r\n//...\r\n    public function registerLoader()\r\n    {\r\n        $this->di->loader\r\n            ->addNamespace('App\\Models', __ROOT__ . '/app/models')\r\n            ->addNamespace('App\\Libraries', __ROOT__ . '/app/lib')\r\n            ->addNamespace('App\\Extensions', __ROOT__ . '/app/ext')\r\n            ->addNamespace('App\\Services', __ROOT__ . '/app/services')\r\n            ->register();\r\n    }\r\n\r\n    public function registerServices()\r\n    {\r\n        $config = $this->config;\r\n        $this->di->config = $config;\r\n\r\n        if ($config->app->env == \"development\") {\r\n            $this->dump->setDetailed(true);\r\n        }\r\n        $this->di->set('filter', function () {\r\n            $filter = new Filter();\r\n            $filter->add('trim', new Trim());\r\n\r\n            return $filter;\r\n        });\r\n//...\r\n```\r\n\r\n```\r\nvar 0 string (514) \"ErrorException[1]: Uncaught TypeError: Argument 3 passed to Ice\\Exception::__construct() must be an instance of Exception, instance of Error given in /var/www/XXXX/XXXXXXXX/base/app/boot/Error.php:31\r\n\r\nStack trace:\r\n\r\n#0 /var/www/XXXX/XXXXXXXX/base/app/boot/Error.php(31): Ice\\Exception->__construct('Class 'App\\\\Exte...', 0, Object(Error))\r\n\r\n#1 [internal function]: App\\Error->__construct('Class 'App\\\\Exte...', 0, Object(Error))\r\n\r\n#2 [internal function]: Ice\\Exception::handler(Object(Error))\r\n\r\n#3 {main}\r\n\r\n  thrown\"\r\n```"}}
{"actor":{"display_login":"circle8z"}}