Skip to content

Commit

Permalink
php 8.0 compatibility fix
Browse files Browse the repository at this point in the history
fixes error `PHP Deprecated: Required parameter $tableAliases follows optional parameter $sqlPart in lib\Doctrine\Query\Abstract.php on line 2468`
  • Loading branch information
marcing authored and falkenhawk committed Oct 4, 2022
1 parent 5832011 commit 9d6294d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.3.3
-----
- php 8.0 compatibility fix [#8](https://github.com/ovos/doctrine1/pull/8)

1.3.2
-----
- fixed Doctrine_Validator_HtmlColor class name to match the filename and fix compatibility with psr-0 autoloading
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/Query/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -2465,7 +2465,7 @@ public function addDependency($sqlPart = null, $tableAlias = null)
* @param array $tableAliases
* @return $this
*/
public function addDependences($sqlPart = null, array $tableAliases)
public function addDependences($sqlPart, array $tableAliases)
{
foreach($tableAliases as $tableAlias) {
$this->addDependency($sqlPart, $tableAlias);
Expand Down

0 comments on commit 9d6294d

Please sign in to comment.