Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
9d7e243
Fix tests to be able to finish it without a fatal error
alquerci Sep 8, 2018
e81dcd3
Fix tests for relationship fetch order when the order is not explicit…
alquerci Sep 1, 2019
c6baf4d
Fix PHP 7 compatibility about deep isset() on class that implement Ar…
alquerci Sep 1, 2019
b55cdc4
Mark as known bug, integer validation with numbers greater than PHP_I…
alquerci Sep 1, 2019
b2a97cc
Fix test for export to XML
alquerci Sep 1, 2019
6b38c1f
Fix PHP 7.4 compatibility
alquerci Sep 1, 2019
adbf2a9
Add zlib required PHP extension on composer configuration
alquerci Sep 1, 2019
da740ae
Fix code structure about always close connections after each test
alquerci Jul 25, 2022
ae10c17
Merge pull request #56 from alquerci/fix-tests-to-be-able-to-finish-i…
thePanz Oct 5, 2022
cf59be0
Add consistent local environment for testing with docker and docker-c…
alquerci Oct 5, 2022
8926c13
Update Builder.php for PHP8 compatibility (#82)
xNatek Oct 5, 2022
27943d7
PHP 8.0 > Typing of internal function parameters do not allow null va…
Tybaze Jun 9, 2022
50cb69e
PHP 8.1 > Compatibility
Tybaze Jun 9, 2022
b6546b1
PR Review - Small bug Fixes
Tybaze Aug 2, 2022
9c63e5d
Fix Annotation and Coding Style
Tybaze Jul 10, 2022
f8ea8b7
Add proof tast name with empty task name property sets by child class
alquerci Oct 5, 2022
9759c58
Use GitHub actions for Continuous Integration tests
thePanz Nov 24, 2022
ced44c8
Fix broken tests when not using shared mysql socket within docker con…
thePanz Nov 24, 2022
92abb24
Remove deprecated --no-suggest option from composer
thePanz Nov 24, 2022
1733100
Update GitHub actions: run pipeline for PRs too
thePanz Jan 9, 2023
f1ac6a0
PHP 8.1 > a few more ReturnTypeWillChange attributes added
thirsch Dec 15, 2022
287270b
Flushing more than once causes a warning. Resetting $_collections to …
thirsch Dec 15, 2022
6ff2997
Added type hint for arrays as the second parameter allows both, a str…
thirsch Dec 15, 2022
816ad13
PHP 8.2 > Creation of dynamic property Class::$property is deprecated
thirsch Dec 15, 2022
a572748
PHP 8.2 > Using ${var} in strings is deprecated, use {$var} instead.
thirsch Dec 15, 2022
72a9ff9
PHP 8.0 > Trying to access array offset on value of type bool
thirsch Dec 15, 2022
33bca65
PHP 8.2 > added test environment
thirsch Dec 15, 2022
0241c0b
PHP 8.2 > Removed properties from Doctrine_RawSql and used _preQuerie…
thirsch Jan 9, 2023
0ee6863
Merge pull request #91 from vemaeg/feature/php-8.2-changes
thePanz Jan 10, 2023
81c839b
add double to type check. bug #88
connorhu Jan 10, 2023
b4749b5
Merge pull request #94 from connorhu/fix-88
thePanz Jan 10, 2023
4625750
PHP 8.1 > Deprecated: strtolower(): Passing null to parameter #1 ($st…
thirsch Feb 11, 2023
8d045bd
Update(github) Update github workflows, use composer caches
thePanz Nov 17, 2023
0978095
Fix array key access in lib/Doctrine/Import/Builder.php
paddyhamburg Jun 27, 2023
9b426e6
CI: add PHP v8.3 to the CI pipelines (#108)
thePanz Jan 17, 2024
46791a3
Remove PHP Pear configurations
thePanz Jan 17, 2024
5ec53b7
Update GitAttributes file
thePanz Jan 17, 2024
0df2b8b
Fix PHP deprecations on ArrayAccess and additional classes
thePanz Jan 17, 2024
2373ce3
fix(Query): add failed test for column added twice with custom aliases
alquerci Jan 20, 2024
29961c7
Revert "Added fields with alias to pendingFields array, fixed DC-585"
alquerci Jan 20, 2024
1d68711
Fix(Query): column added twice with custom aliases
alquerci Jan 20, 2024
4f020ae
Fixed test 1325TestCase.php
thirsch Jan 29, 2024
cc51a4f
fix(tests) replace use of iconv in SearchTestCase.php
connorhu Jan 24, 2024
7327db8
add(composer): ext-iconv is now a requirement
connorhu Jan 24, 2024
eeb1777
Adding columns defined in actAs-templates to the docblock of the gene…
thirsch Dec 15, 2022
9e0ac04
Update readme: we dont have 1.5 here
connorhu Feb 5, 2024
3679947
Update min PHP version to v7.4 (#122)
connorhu Feb 6, 2024
1990ab3
Fix invalid docblock for Collection::fromArray()
miamibc Feb 9, 2024
ff63f6c
Remove unused variable from Collection::fromArray()
miamibc Feb 9, 2024
b756c43
[composer] add sort-packages
connorhu Feb 6, 2024
b2e59a6
introduce __DIR__ constants
connorhu Feb 17, 2024
f7a6e29
PHP 8.1 > ReturnTypeWillChange attributes added
thirsch Feb 3, 2024
931eef1
fixed CI tasks on relevant folders
connorhu Feb 22, 2024
a552724
Fix Doctrine lengthValidator deprecation on null float/decimal values…
iricketson Apr 29, 2024
5ef8287
Fix code style, remove extra whitespaces
thePanz Jun 14, 2024
f47a790
Tests: ensure models contain only one record per file
thePanz Jun 26, 2024
773e8ba
Fix return type
iricketson Jul 3, 2024
e7bbbb0
Add(typehint) Add typehint to methods and return types
thePanz Jun 27, 2024
5c857c2
Add(typehint): Add typehint to methods and void return to Doctrine_Qu…
thePanz Oct 11, 2024
5ffcb73
Fix(typehint) Fix PHP deprecations on Doctrine_Record_Filter::filterS…
thePanz Oct 25, 2024
f2797fb
Merged remote-tracking branch 'upstream/master'
akhumphrey Dec 10, 2024
05e31f8
removed unnecessary changes
akhumphrey Dec 10, 2024
1fcab9a
Added php 8.4 to ci pipeline
thirsch Dec 23, 2024
bbd1cdd
PHP 8.4 > Implicitly marking parameter as nullable is deprecated
thirsch Dec 23, 2024
998a27b
Merge branch 'upstream' into integration
akhumphrey Mar 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "Continuous Integration"

on:
pull_request:
branches:
- master
paths:
- .github/workflows/continuous-integration.yml
- composer.*
Expand Down Expand Up @@ -29,6 +31,7 @@ jobs:
php-version:
- "8.2"
- "8.3"
- "8.4"

steps:
- name: Checkout
Expand Down
6 changes: 3 additions & 3 deletions lib/Doctrine/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ class Doctrine_Cli
/**
* __construct
*
* @param array [$config=array()]
* @param object|null [$formatter=null] Doctrine_Cli_Formatter
* @param array $config
* @param Doctrine_Cli_Formatter|null $formatter
Comment thread
alexcoles marked this conversation as resolved.
*/
public function __construct(array $config = array(), Doctrine_Cli_Formatter $formatter = null)
public function __construct(array $config = array(), ?Doctrine_Cli_Formatter $formatter = null)
{
$this->setConfig($config);
$this->setFormatter($formatter ? $formatter : new Doctrine_Cli_AnsiColorFormatter());
Expand Down
10 changes: 5 additions & 5 deletions lib/Doctrine/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -923,10 +923,10 @@ protected function compareRecords($a, $b)
* Saves all records of this collection and processes the
* difference of the last snapshot and the current data
*
* @param Doctrine_Connection $conn optional connection parameter
* @param Doctrine_Connection|null $conn optional connection parameter
* @return Doctrine_Collection
*/
public function save(Doctrine_Connection $conn = null, $processDiff = true)
public function save(?Doctrine_Connection $conn = null, $processDiff = true)
{
if ($conn == null) {
$conn = $this->_table->getConnection();
Expand Down Expand Up @@ -958,10 +958,10 @@ public function save(Doctrine_Connection $conn = null, $processDiff = true)
* Replaces all records of this collection and processes the
* difference of the last snapshot and the current data
*
* @param Doctrine_Connection $conn optional connection parameter
* @param Doctrine_Connection|null $conn optional connection parameter
* @return Doctrine_Collection
*/
public function replace(Doctrine_Connection $conn = null, $processDiff = true)
public function replace(?Doctrine_Connection $conn = null, $processDiff = true)
{
if ($conn == null) {
$conn = $this->_table->getConnection();
Expand Down Expand Up @@ -994,7 +994,7 @@ public function replace(Doctrine_Connection $conn = null, $processDiff = true)
*
* @return Doctrine_Collection
*/
public function delete(Doctrine_Connection $conn = null, $clearColl = true)
public function delete(?Doctrine_Connection $conn = null, $clearColl = true)
{
if ($conn == null) {
$conn = $this->_table->getConnection();
Expand Down
30 changes: 11 additions & 19 deletions lib/Doctrine/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Lukas Smith <smith@pooteeweet.org> (MDB2 library)
*
* @property Doctrine_Export $export
*/
abstract class Doctrine_Connection extends Doctrine_Configurable implements Countable, IteratorAggregate, Serializable
{
Expand Down Expand Up @@ -241,41 +243,31 @@ public function isConnected()
}

/**
* getOptions
*
* Get array of all options
*
* @return void
* @return array<string, mixed>
*/
public function getOptions()
public function getOptions(): array
{
return $this->options;
}

/**
* getOption
*
* Retrieves option
*
* @param string $option
* @return void
* @return null|mixed
*/
public function getOption($option)
public function getOption(string $option)
{
if (isset($this->options[$option])) {
return $this->options[$option];
}
}

/**
* setOption
*
* Set option value
*
* @param string $option
* @return void
* @return mixed
*/
public function setOption($option, $value)
public function setOption(string $option, $value)
{
return $this->options[$option] = $value;
}
Expand Down Expand Up @@ -1545,8 +1537,8 @@ public function dropDatabase()
* which is always guaranteed to exist. Mysql: 'mysql', PostgreSQL: 'postgres', etc.
* This value is set in the Doctrine_Export_{DRIVER} classes if required
*
* @param string $info
* @return void
* @param array $info
* @return Doctrine_Connection
*/
public function getTmpConnection($info)
{
Expand All @@ -1569,7 +1561,7 @@ public function getTmpConnection($info)
$username = $this->getOption('username');
$password = $this->getOption('password');

$conn = $this->getManager()->openConnection(array($pdoDsn, $username, $password), 'doctrine_tmp_connection', false);
$conn = $this->getManager()->openConnection([$pdoDsn, $username, $password], 'doctrine_tmp_connection', false);
$conn->setOption('username', $username);
$conn->setOption('password', $password);

Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/Connection/Mssql.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ public function quoteIdentifier($identifier, $checkOption = false)
* @param mixed $limit
* @param mixed $offset
* @param boolean $isSubQuery
* @param Doctrine_Query $queryOrigin
* @param Doctrine_Query|null $queryOrigin
* @link https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php#L607
* @link http://www.toosweettobesour.com/2010/09/16/doctrine-1-2-mssql-alternative-limitpaging/
* @return string
*/
public function modifyLimitQuery($query, $limit = false, $offset = false, $isManip = false, $isSubQuery = false, Doctrine_Query $queryOrigin = null)
public function modifyLimitQuery($query, $limit = false, $offset = false, $isManip = false, $isSubQuery = false, ?Doctrine_Query $queryOrigin = null)
{
if ($limit === false || !($limit > 0)) {
return $query;
Expand Down
Loading