Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 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
2619d1a
Merged remote tracking branch into integration
akhumphrey Nov 8, 2023
2c53e36
removed automated testing for `php7.4` and `php8.0`
akhumphrey Nov 8, 2023
12577e4
removed duplicate methods from `Collection`
akhumphrey Nov 8, 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
764c81d
Merge branch 'upstream' into integration
akhumphrey Jan 3, 2024
3e37720
removed automated testing for old php versions
akhumphrey Jan 11, 2024
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
c87529e
Merged branch 'upstream' into integration
akhumphrey 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
758ea46
added missing `TRANSACTION` directives to `Mysql` connections
akhumphrey Jan 22, 2024
1d68711
Fix(Query): column added twice with custom aliases
alquerci Jan 20, 2024
2d4412c
ANA-4734 Add trailing line break to base class files (#7)
alexcoles Jan 26, 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
5a6c225
Merged remote tracking branch `upstream/master` into integration
akhumphrey Feb 27, 2024
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
File renamed without changes.
7 changes: 4 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/.docker export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/build.properties.dev export-ignore
/build.xml export-ignore
/.github export-ignore

/docker-compose.yml
/tests export-ignore
/tools export-ignore
61 changes: 61 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: "Continuous Integration"

on:
pull_request:
branches:
- php82
paths:
- .github/workflows/continuous-integration.yml
- composer.*
- lib/**
- tests/**

push:
branches:
- php82
paths:
- .github/workflows/continuous-integration.yml
- composer.*
- lib/**
- tests/**

env:
fail-fast: true

jobs:
tests:
name: "Doctrine1 Tests"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.2"
- "8.3"

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: "true"

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist

- name: Run Tests
run: cd tests && php run.php
49 changes: 0 additions & 49 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Installation

Using [Composer](http://getcomposer.org/doc/00-intro.md) as dependency management:

composer require friendsofsymfony1/doctrine1 "1.5.*"
composer require friendsofsymfony1/doctrine1 "1.4.*"
composer install


Expand Down
11 changes: 0 additions & 11 deletions build.properties.dev

This file was deleted.

94 changes: 0 additions & 94 deletions build.xml

This file was deleted.

8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
}
],
"require": {
"php": ">=8.1",
"php": ">=8.2",
"ext-mbstring": "*",
"ext-pdo": "*"
"ext-pdo": "*",
"ext-zlib": "*"
},
"support": {
"issues": "https://github.com/JamesAndJamesFulfilment/doctrine1/issues",
Expand All @@ -37,5 +38,8 @@
"branch-alias": {
"dev-php81": "1.5-dev"
}
},
"config": {
"sort-packages": true
}
}
26 changes: 4 additions & 22 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,12 @@ services:
- |
exec tail -f /dev/null

php81:
php82:
<<: *services_php8x
build:
context: .docker/php74_81
context: .docker/php74_82
args:
PHP_VERSION: '8.1'
working_dir: /app/tests
volumes:
- .:/app
- db_socket:/var/run/mysqld
entrypoint:
- sh
- -c
- |
{
echo 'pdo_mysql.default_socket = /var/run/mysqld/mysql.sock'
echo 'memory_limit = -1'
echo 'short_open_tag = off'
echo 'magic_quotes_gpc = off'
echo 'date.timezone = "UTC"'
} | tee -a /usr/local/etc/php/php.ini

exec tail -f /dev/null
depends_on:
- db
PHP_VERSION: '8.2'

db:
image: mysql:5.5.62
Expand Down
33 changes: 9 additions & 24 deletions lib/Doctrine/Access.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ public function __unset($name)
}

/**
* Check if an offset axists
*
* @param mixed $offset
* @return boolean Whether or not this object contains $offset
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
Expand All @@ -108,10 +105,6 @@ public function offsetExists($offset)
}

/**
* An alias of get()
*
* @see get, __get
* @param mixed $offset
* @return mixed
*/
#[\ReturnTypeWillChange]
Expand All @@ -127,11 +120,6 @@ public function offsetGet($offset)
}

/**
* Sets $offset to $value
*
* @see set, __set
* @param mixed $offset
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
Expand All @@ -145,22 +133,19 @@ public function offsetSet($offset, $value)
}

/**
* Unset a given offset
*
* @see set, offsetSet, __set
* @param mixed $offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
return $this->remove($offset);
$this->remove($offset);
}

/**
* Remove the element with the specified offset
*
* @param mixed $offset The offset to remove
* @return boolean True if removed otherwise false
* @return bool True if removed otherwise false
*/
public function remove($offset)
{
Expand Down Expand Up @@ -191,8 +176,8 @@ public function set($offset, $value)
}

/**
* Check if the specified offset exists
*
* Check if the specified offset exists
*
* @param mixed $offset The offset to check
* @return boolean True if exists otherwise false
*/
Expand All @@ -202,9 +187,9 @@ public function contains($offset)
}

/**
* Add the value
*
* @param mixed $value The value to add
* Add the value
*
* @param mixed $value The value to add
* @return void
*/
public function add($value)
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/Cli/AnsiColorFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function formatSection($section, $text, $size = null)
{
$width = 9 + strlen($this->format('', 'INFO'));

return sprintf(">> %-${width}s %s", $this->format($section, 'INFO'), $this->excerpt($text, $size));
return sprintf(">> %-{$width}s %s", $this->format($section, 'INFO'), $this->excerpt($text, $size));
}

/**
Expand Down
Loading