ppshobi / psonic

Sonic is a super fast auto suggestion engine built by the team at crisp.chat, a customer engagement platform. its built in Rust and they officially support a javascript client, but if you want to use sonic via php, this is the library that you can look for. Completely unit tested, and adheres to modern coding standards, and offers a clean api to interact with sonic.
MIT License
130 stars 9 forks source link

fix read size limitation from a stream #23

Closed smoothsea closed 1 year ago

ppshobi commented 3 years ago

Do you have any idea why the scrutinizer is failing?

smoothsea commented 3 years ago

It looks like php_codesniffer (3.0.2)'s problems.

Package operations: 1 install, 0 updates, 0 removals
  - Downloading squizlabs/php_codesniffer (3.0.2)
  - Installing squizlabs/php_codesniffer (3.0.2): Extracting archive
Generating autoload files
PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/src/Config.php on line 399
PHP Stack trace:
PHP   1. {main}() /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/bin/phpcs:0
PHP   2. PHP_CodeSniffer\Runner->runPHPCS() /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/bin/phpcs:18
PHP   3. PHP_CodeSniffer\Autoload::load($class = 'PHP_CodeSniffer\\Config') /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/src/Runner.php:67
PHP   4. PHP_CodeSniffer\Autoload::loadFile($path = '/home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/src/Config.php') /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/autoload.php:134
PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/src/Config.php on line 399
PHP Stack trace:
PHP   1. {main}() /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/bin/phpcs:0
PHP   2. PHP_CodeSniffer\Runner->runPHPCS() /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/bin/phpcs:18
PHP   3. PHP_CodeSniffer\Autoload::load($class = 'PHP_CodeSniffer\\Config') /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/src/Runner.php:67
PHP   4. PHP_CodeSniffer\Autoload::loadFile($path = '/home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/src/Config.php') /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/autoload.php:134

I find this issue in thier repository.

ppshobi commented 1 year ago

@smoothsea I just got time to come back to this. just rebased your pull request and merged it. Thank you :)