-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Merge 4.3.x into 5.0.x #7007
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
Merged
Merged
Merge 4.3.x into 5.0.x #7007
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e0f651f
CI MariaDB: add 11.8 (#6991)
jaylinski 17d5217
Run tests on MySQL 9.3 instead of 9.1 (#7001)
derrabus 72f7bf2
fix(PgSQL): Allow to pass IPv6 address in URI notation for postgres (…
susnux 4a4e2ee
Bump dev tools (#7002)
derrabus 545e932
Merge branch '3.9.x' into 4.2.x
derrabus a4f15b4
Ignore new PHPStan errors
derrabus 677ab6a
Merge branch '3.9.x' into 3.10.x
derrabus 3c965c0
Merge branch '4.2.x' into 4.3.x
derrabus b425217
Merge branch '3.10.x' into 4.3.x
derrabus d2b297e
Fix new and previously ignored PHPStan errors
derrabus cb47bc6
Deprecate support for MariaDB 10.5 (#7000)
derrabus 5fe0953
phpunit/phpunit (11.5.15 => 11.5.23) (#7006)
derrabus 413d5e2
Merge branch '4.3.x' into 5.0.x
derrabus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Doctrine\DBAL\Tests\Driver\PgSQL; | ||
|
||
use Doctrine\DBAL\Driver as DriverInterface; | ||
use Doctrine\DBAL\Driver\PgSQL\Driver; | ||
use Doctrine\DBAL\Tests\Driver\AbstractPostgreSQLDriverTestCase; | ||
use Doctrine\DBAL\Tests\TestUtil; | ||
|
||
use function in_array; | ||
|
||
class DriverTest extends AbstractPostgreSQLDriverTestCase | ||
{ | ||
protected function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
if (isset($GLOBALS['db_driver']) && $GLOBALS['db_driver'] === 'pgsql') { | ||
return; | ||
} | ||
|
||
self::markTestSkipped('Test enabled only when using pgsql specific phpunit.xml'); | ||
} | ||
|
||
/** | ||
* Ensure we can handle URI notation for IPv6 addresses | ||
*/ | ||
public function testConnectionIPv6(): void | ||
{ | ||
if (! in_array($GLOBALS['db_host'], ['localhost', '127.0.0.1', '[::1]'], true)) { | ||
// We cannot assume that every contributor runs the same setup as our CI | ||
self::markTestSkipped('This test only works if there is a Postgres server listening on localhost.'); | ||
} | ||
|
||
self::expectNotToPerformAssertions(); | ||
|
||
$params = TestUtil::getConnectionParams(); | ||
$params['host'] = '[::1]'; | ||
|
||
$this->driver->connect($params); | ||
} | ||
|
||
protected function createDriver(): DriverInterface | ||
{ | ||
return new Driver(); | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we want to complicate our code instead of just suppressing a false positive error?Never mind, it's already implemented in #7005, we're just merging this up.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the latest PHPStan update, suppressing the error did not work anymore. You can revert d2b297e and see for yourself. I seems as if PHPStan now prefers the assignment in the constructor over the property's doc block. 😓