{"action":"created","issue":{"url":"https://api.github.com/repos/PHPSocialNetwork/phpfastcache/issues/309","repository_url":"https://api.github.com/repos/PHPSocialNetwork/phpfastcache","labels_url":"https://api.github.com/repos/PHPSocialNetwork/phpfastcache/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/PHPSocialNetwork/phpfastcache/issues/309/comments","events_url":"https://api.github.com/repos/PHPSocialNetwork/phpfastcache/issues/309/events","html_url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/309","id":163561592,"number":309,"title":"$expiration instanceof \\DateTimeInterface didn't work on a deployment server","user":{"login":"iain17","id":1770283,"avatar_url":"https://avatars.githubusercontent.com/u/1770283?v=3","gravatar_id":"","url":"https://api.github.com/users/iain17","html_url":"https://github.com/iain17","followers_url":"https://api.github.com/users/iain17/followers","following_url":"https://api.github.com/users/iain17/following{/other_user}","gists_url":"https://api.github.com/users/iain17/gists{/gist_id}","starred_url":"https://api.github.com/users/iain17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iain17/subscriptions","organizations_url":"https://api.github.com/users/iain17/orgs","repos_url":"https://api.github.com/users/iain17/repos","events_url":"https://api.github.com/users/iain17/events{/privacy}","received_events_url":"https://api.github.com/users/iain17/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-03T13:09:28Z","updated_at":"2016-07-03T17:06:55Z","closed_at":"2016-07-03T17:04:54Z","pull_request":{"url":"https://api.github.com/repos/PHPSocialNetwork/phpfastcache/pulls/309","html_url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/309","diff_url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/309.diff","patch_url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/309.patch"},"body":"This wee change fixes it. Everything still works as far as I've tested.\r\n\r\nstack trace I received before my fix:\r\n``Fatal error: Uncaught exception 'InvalidArgumentException' with message '$expiration must be an object implementing the DateTimeInterface' in /var/www/vhosts/rkpsc.com/httpdocs/wp-content/plugins/knvb/vendor/phpfastcache/phpfastcache/src/phpFastCache/Cache/ItemBaseTrait.php:134 Stack trace: #0 /var/www/vhosts/rkpsc.com/httpdocs/wp-content/plugins/knvb/vendor/phpfastcache/phpfastcache/src/phpFastCache/Core/StandardPsr6StructureTrait.php(59): phpFastCache\\Drivers\\Files\\Item->expiresAt(Object(DateTime)) #1 /var/www/vhosts/rkpsc.com/httpdocs/wp-content/plugins/knvb/components/wp-admin/short-codes.php(46): phpFastCache\\Core\\DriverAbstract->getItem('team-rank_{\"nam...') #2 [internal function]: knvb(Array, '', 'knvb') #3 /var/www/vhosts/rkpsc.com/httpdocs/wp-includes/shortcodes.php(326): call_user_func('knvb', Array, '', 'knvb') #4 [internal function]: do_shortcode_tag(Array) #5 /var/www/vhosts/rkpsc.com/httpdocs/wp-includes/shortcodes.php(223): preg_replace_callback('/\\[(\\[?)(knvb)(...', 'do_shortcode_ta...', '<div class=\"ran.. in /var/www/vhosts/rkpsc.com/httpdocs/wp-content/plugins/knvb/vendor/phpfastcache/phpfastcache/src/phpFastCache/Cache/ItemBaseTrait.php on line 134``\r\n\r\neventho it was a datetime instance"},"comment":{"url":"https://api.github.com/repos/PHPSocialNetwork/phpfastcache/issues/comments/230163742","html_url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/309#issuecomment-230163742","issue_url":"https://api.github.com/repos/PHPSocialNetwork/phpfastcache/issues/309","id":230163742,"user":{"login":"Geolim4","id":1332071,"avatar_url":"https://avatars.githubusercontent.com/u/1332071?v=3","gravatar_id":"","url":"https://api.github.com/users/Geolim4","html_url":"https://github.com/Geolim4","followers_url":"https://api.github.com/users/Geolim4/followers","following_url":"https://api.github.com/users/Geolim4/following{/other_user}","gists_url":"https://api.github.com/users/Geolim4/gists{/gist_id}","starred_url":"https://api.github.com/users/Geolim4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geolim4/subscriptions","organizations_url":"https://api.github.com/users/Geolim4/orgs","repos_url":"https://api.github.com/users/Geolim4/repos","events_url":"https://api.github.com/users/Geolim4/events{/privacy}","received_events_url":"https://api.github.com/users/Geolim4/received_events","type":"User","site_admin":false},"created_at":"2016-07-03T17:06:55Z","updated_at":"2016-07-03T17:06:55Z","body":"Yeah sorry, but the V5 was targeted for 5.5, and we wont make backward compatible patches for <5.5 versions. In the meantime you can still use the V4 which will be supported for a while :)"}}
{"actor":{"display_login":"Geolim4"}}