Skip to content

Fatal error: Uncaught ArgumentCountError: #40

Closed

Description

@sir-reynolds

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

Activity

  1. added
    question
    on Aug 21, 2021
  2. clue commented on Aug 21, 2021

    @clue
    Owner

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions