Skip to content

Fatal error: Uncaught ArgumentCountError: #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sir-reynolds opened this issue Aug 7, 2021 · 1 comment
Closed

Fatal error: Uncaught ArgumentCountError: #40

sir-reynolds opened this issue Aug 7, 2021 · 1 comment
Labels
question Further information is requested

Comments

@sir-reynolds
Copy link

sir-reynolds commented Aug 7, 2021

i try code on example insert and run from cli
php react-sqlite.php 50, and this is error information

Fatal error: Uncaught ArgumentCountError: Too few arguments to function Clue\React\SQLite\Factory::__construct(), 0 passed in C:\laragon\www\php-composer-lib\react-sqlite.php on line 8 and exactly 1 expected in C:\laragon\www\php-composer-lib\vendor\clue\reactphp-sqlite\src\Factory.php:29
Stack trace:
#0 C:\laragon\www\php-composer-lib\react-sqlite.php(8): Clue\React\SQLite\Factory->__construct()
#1 {main}
  thrown in C:\laragon\www\php-composer-lib\vendor\clue\reactphp-sqlite\src\Factory.php on line 29

information :

windows 10
Laragon
php 7.2.19

@clue clue added the question Further information is requested label Aug 21, 2021
@clue
Copy link
Owner

clue commented Aug 21, 2021

@sir-reynolds It looks like you're using the documentation/examples from the current main version while running the v1.1.0 release. Your above code should work against the current main version and the upcoming v1.2.0 release version (#39) 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants