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

Compatibility with PHP 8.1 #193

Merged
merged 25 commits into from
Nov 8, 2021
Merged

Compatibility with PHP 8.1 #193

merged 25 commits into from
Nov 8, 2021

Conversation

srjlewis
Copy link
Contributor

Add typing and compatibility with PHP 8.1

I have also pulled in #191

@srjlewis srjlewis mentioned this pull request Oct 28, 2021
@kenjis
Copy link
Member

kenjis commented Nov 2, 2021

@koriym Can you review?

composer.json Outdated Show resolved Hide resolved
Co-authored-by: kenjis <kenji.uui@gmail.com>
.github/workflows/tests.yml Outdated Show resolved Hide resolved
srjlewis and others added 2 commits November 3, 2021 10:13
Co-authored-by: kenjis <kenji.uui@gmail.com>
By default PDO now uses native types for int/floats instead of everything being strings.
src/ConnectionLocator.php Show resolved Hide resolved
Copy link
Contributor Author

@srjlewis srjlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a extra test, all looks good

srjlewis and others added 4 commits November 7, 2021 09:02
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
src/PdoInterface.php Outdated Show resolved Hide resolved
srjlewis and others added 4 commits November 7, 2021 09:10
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
src/PdoInterface.php Outdated Show resolved Hide resolved
src/PdoInterface.php Outdated Show resolved Hide resolved
src/PdoInterface.php Outdated Show resolved Hide resolved
src/PdoInterface.php Outdated Show resolved Hide resolved
src/PdoInterface.php Outdated Show resolved Hide resolved
src/PdoInterface.php Outdated Show resolved Hide resolved
src/PdoInterface.php Outdated Show resolved Hide resolved
src/AbstractExtendedPdo.php Outdated Show resolved Hide resolved
src/AbstractExtendedPdo.php Outdated Show resolved Hide resolved
src/AbstractExtendedPdo.php Outdated Show resolved Hide resolved
src/AbstractExtendedPdo.php Outdated Show resolved Hide resolved
src/AbstractExtendedPdo.php Outdated Show resolved Hide resolved
src/AbstractExtendedPdo.php Outdated Show resolved Hide resolved
src/AbstractExtendedPdo.php Outdated Show resolved Hide resolved
@kenjis
Copy link
Member

kenjis commented Nov 7, 2021

Could you update the config file of PHPUnit?

PHPUnit 9.5.10 by Sebastian Bergmann and contributors.

  Warning - The configuration file did not pass validation!
  The following problems have been detected:

  Line 3:
  - Element 'testsuite': The attribute 'name' is required but missing.

  Line 7:
  - Element 'filter': This element is not expected.

  Test results may not be as expected.

@kenjis
Copy link
Member

kenjis commented Nov 8, 2021

We tried to match the PDO method signatures in the PHP manual as much as possible.

@kenjis kenjis merged commit 2c39cd2 into auraphp:5.x Nov 8, 2021
@kenjis
Copy link
Member

kenjis commented Nov 8, 2021

@srjlewis Thank you!

@kenjis kenjis mentioned this pull request Nov 8, 2021
@srjlewis srjlewis deleted the 5.x-php8.1 branch November 8, 2021 10:07
@kenjis
Copy link
Member

kenjis commented Nov 10, 2021

Close #192

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

Successfully merging this pull request may close these issues.

None yet

3 participants