{"action":"created","issue":{"url":"https://api.github.com/repos/thiagoalessio/tesseract-ocr-for-php/issues/135","repository_url":"https://api.github.com/repos/thiagoalessio/tesseract-ocr-for-php","labels_url":"https://api.github.com/repos/thiagoalessio/tesseract-ocr-for-php/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/thiagoalessio/tesseract-ocr-for-php/issues/135/comments","events_url":"https://api.github.com/repos/thiagoalessio/tesseract-ocr-for-php/issues/135/events","html_url":"https://github.com/thiagoalessio/tesseract-ocr-for-php/issues/135","id":338556986,"node_id":"MDU6SXNzdWUzMzg1NTY5ODY=","number":135,"title":"Error with PHP 5.4 and composer.","user":{"login":"paloke","id":2188389,"node_id":"MDQ6VXNlcjIxODgzODk=","avatar_url":"https://avatars0.githubusercontent.com/u/2188389?v=4","gravatar_id":"","url":"https://api.github.com/users/paloke","html_url":"https://github.com/paloke","followers_url":"https://api.github.com/users/paloke/followers","following_url":"https://api.github.com/users/paloke/following{/other_user}","gists_url":"https://api.github.com/users/paloke/gists{/gist_id}","starred_url":"https://api.github.com/users/paloke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paloke/subscriptions","organizations_url":"https://api.github.com/users/paloke/orgs","repos_url":"https://api.github.com/users/paloke/repos","events_url":"https://api.github.com/users/paloke/events{/privacy}","received_events_url":"https://api.github.com/users/paloke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-05T12:38:47Z","updated_at":"2018-07-05T17:52:10Z","closed_at":null,"author_association":"NONE","body":"### Expected behavior\r\n\r\nThe text of the test.png image\r\n\r\n### Actual behavior\r\n\r\nAfter composer update:\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nNothing to install or update\r\nGenerating autoload files\r\nI get:\r\n\r\nA PHP Error was encountered\r\nSeverity: Parsing Error\r\nMessage: syntax error, unexpected '.', expecting ')'\r\nFilename: src/TesseractOCR.php\r\nLine Number: 49\r\n\r\n### Steps to reproduce the behavior\r\n\r\ndefined('BASEPATH') OR exit('No direct script access allowed');\r\nuse thiagoalessio\\TesseractOCR\\TesseractOCR;\r\nclass Ocr extends CI_Controller {\r\n  public function test_ocr(){\r\n  \techo (new TesseractOCR('test.png'))->run();\r\n  }\r\n}\r\n\r\n#### Environment\r\n\r\n* Operating system: Linux 2.6.32-32-pve #1 SMP Thu Aug 21 08:50:19 CEST 2014 i686\r\n* PHP version: PHP 5.4.45-0+deb7u14 (cli) (built: May  9 2018 18:47:17)\r\n* Tesseract version: tesseract 3.02\r\n* tesseract-ocr-for-php version: \r\nname     : thiagoalessio/tesseract_ocr\r\ndescrip. : A wrapper to work with Tesseract OCR inside PHP.\r\nkeywords : OCR, Tesseract, text recognition\r\nversions : * 2.0.0\r\n"},"comment":{"url":"https://api.github.com/repos/thiagoalessio/tesseract-ocr-for-php/issues/comments/402802906","html_url":"https://github.com/thiagoalessio/tesseract-ocr-for-php/issues/135#issuecomment-402802906","issue_url":"https://api.github.com/repos/thiagoalessio/tesseract-ocr-for-php/issues/135","id":402802906,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjgwMjkwNg==","user":{"login":"thiagoalessio","id":190616,"node_id":"MDQ6VXNlcjE5MDYxNg==","avatar_url":"https://avatars1.githubusercontent.com/u/190616?v=4","gravatar_id":"","url":"https://api.github.com/users/thiagoalessio","html_url":"https://github.com/thiagoalessio","followers_url":"https://api.github.com/users/thiagoalessio/followers","following_url":"https://api.github.com/users/thiagoalessio/following{/other_user}","gists_url":"https://api.github.com/users/thiagoalessio/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagoalessio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagoalessio/subscriptions","organizations_url":"https://api.github.com/users/thiagoalessio/orgs","repos_url":"https://api.github.com/users/thiagoalessio/repos","events_url":"https://api.github.com/users/thiagoalessio/events{/privacy}","received_events_url":"https://api.github.com/users/thiagoalessio/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T17:52:10Z","updated_at":"2018-07-05T17:52:10Z","author_association":"OWNER","body":"Hello @paloke I've seen that you are using version `2.0.0` of this library, but back then I was only supporting PHP 5.6+.\r\n\r\nI'm currently working on supporting older PHP versions, please experiment with version `2.6.0` or `dev-master` and let me know ;D"}}
{"actor":{"display_login":"thiagoalessio"}}