Skip to content
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

Bug: [OCI8] Argument #1 ($value) must be of type ?int, string given #8809

Open
allyblaise opened this issue Apr 19, 2024 · 2 comments · May be fixed by #8811
Open

Bug: [OCI8] Argument #1 ($value) must be of type ?int, string given #8809

allyblaise opened this issue Apr 19, 2024 · 2 comments · May be fixed by #8811
Labels
database Issues or pull requests that affect the database layer

Comments

@allyblaise
Copy link

allyblaise commented Apr 19, 2024

PHP Version

8.3

CodeIgniter4 Version

4.5.1

CodeIgniter4 Installation Method

Composer (as dependency to an existing project)

Which operating systems have you tested for this bug?

macOS

Which server did you use?

cli-server (PHP built-in webserver)

Database

ORACLE 19c

What happened?

TypeError: CodeIgniter\Database\BaseBuilder::limit(): Argument #1 ($value) must be of type ?int, string given, called in ../vendor/codeigniter4/framework/system/Model.php on line 919

Steps to Reproduce

Connect to oracle database using OCI8 with php8.2+

Expected Output

Allow database connection without a warning

Anything else?

No response

@allyblaise allyblaise added the bug Verified issues on the current code behavior or pull requests that will fix them label Apr 19, 2024
allyblaise added a commit to allyblaise/CodeIgniter4 that referenced this issue Apr 19, 2024
@kenjis kenjis changed the title Bug: Argument #1 ($value) must be of type ?int, string given Bug: [Model] Argument #1 ($value) must be of type ?int, string given Apr 19, 2024
@kenjis kenjis added the database Issues or pull requests that affect the database layer label Apr 19, 2024
@kenjis
Copy link
Member

kenjis commented Apr 19, 2024

Connect to oracle database using OCI8 with php8.2+

Cannot reproduce.

@kenjis kenjis changed the title Bug: [Model] Argument #1 ($value) must be of type ?int, string given Bug: [OCI8] Argument #1 ($value) must be of type ?int, string given Apr 19, 2024
@paulbalandan
Copy link
Member

Please show the model code you used in accessing the database.

@kenjis kenjis removed the bug Verified issues on the current code behavior or pull requests that will fix them label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Issues or pull requests that affect the database layer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants