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

Changes for PHP 8.4 #229

Merged
merged 5 commits into from
Nov 16, 2024
Merged

Changes for PHP 8.4 #229

merged 5 commits into from
Nov 16, 2024

Conversation

srjlewis
Copy link
Contributor

@srjlewis srjlewis commented Oct 3, 2024

No description provided.

@harikt
Copy link
Member

harikt commented Oct 4, 2024

This can go to 6.x , else we need to make sure the connect method is not removed or another alternate approach needed .

@harikt harikt changed the base branch from 5.x to 6.x October 4, 2024 07:26
@harikt harikt mentioned this pull request Oct 4, 2024
Copy link
Contributor

@frederikbosch frederikbosch left a comment

Choose a reason for hiding this comment

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

Two discussions points: which versions to support and should the static function connect return an immediate connection?

@@ -100,7 +113,11 @@ public function connect(): void
// connect
$this->profiler->start(__FUNCTION__);
list($dsn, $username, $password, $options, $queries) = $this->args;
$this->pdo = new PDO($dsn, $username, $password, $options);
if(version_compare(phpversion(), '8.4.0', '<')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd remove this check and only support PHP 8.4

.github/workflows/continuous-integration.yml Show resolved Hide resolved
?ProfilerInterface $profiler = null
): static {
$pdo = new static($dsn, $username, $password, $options ?? [], $queries, $profiler);
$pdo->establishConnection();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want to connect immediately when using driver specific constructor? I'd say we always connect lazily.

Copy link
Contributor

@frederikbosch frederikbosch left a comment

Choose a reason for hiding this comment

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

Single discussion left

composer.json Outdated Show resolved Hide resolved
@frederikbosch
Copy link
Contributor

@harikt and @koriym, move this one in?

@frederikbosch
Copy link
Contributor

Thanks for the effort @srjlewis. I might have advocated my points strongly but I really appreciate the work.

@harikt
Copy link
Member

harikt commented Nov 16, 2024

I am ok with the changes. Thank you guys.

@harikt harikt merged commit 0d02dd3 into auraphp:6.x Nov 16, 2024
1 of 2 checks passed
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