Skip to content

Compatibility with PHP 8.1#193

Merged
kenjis merged 25 commits intoauraphp:5.xfrom
srjlewis:5.x-php8.1
Nov 8, 2021
Merged

Compatibility with PHP 8.1#193
kenjis merged 25 commits intoauraphp:5.xfrom
srjlewis:5.x-php8.1

Conversation

@srjlewis
Copy link
Copy Markdown
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
Copy Markdown
Member

kenjis commented Nov 2, 2021

@koriym Can you review?

Comment thread composer.json Outdated
Co-authored-by: kenjis <kenji.uui@gmail.com>
Comment thread .github/workflows/tests.yml Outdated
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.
Comment thread src/ConnectionLocator.php
Copy link
Copy Markdown
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>
Comment thread src/PdoInterface.php Outdated
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>
Comment thread src/PdoInterface.php Outdated
Comment thread src/PdoInterface.php Outdated
Comment thread src/PdoInterface.php Outdated
Comment thread src/PdoInterface.php Outdated
Comment thread src/PdoInterface.php Outdated
Comment thread src/PdoInterface.php Outdated
Comment thread src/PdoInterface.php Outdated
Comment thread src/AbstractExtendedPdo.php Outdated
Comment thread src/AbstractExtendedPdo.php Outdated
Comment thread src/AbstractExtendedPdo.php Outdated
Comment thread src/AbstractExtendedPdo.php Outdated
Comment thread src/AbstractExtendedPdo.php Outdated
Comment thread src/AbstractExtendedPdo.php Outdated
Comment thread src/AbstractExtendedPdo.php Outdated
@kenjis
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants