Skip to content

Commit

Permalink
Implicitly marking parameter as nullable is deprecated in PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugoku committed Dec 5, 2024
1 parent e82941f commit 0c743e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Doctrine/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ public function resetPendingUnlinks()
* @param Doctrine_Connection $conn optional connection parameter
* @throws Exception if record is not valid and validation is active
*/
public function save(Doctrine_Connection $conn = null)
public function save(?Doctrine_Connection $conn = null)
{
if ($conn === null) {
$conn = $this->_table->getConnection();
Expand All @@ -1783,7 +1783,7 @@ public function save(Doctrine_Connection $conn = null)
* @param Doctrine_Connection $conn optional connection parameter
* @return TRUE if the record was saved sucessfully without errors, FALSE otherwise.
*/
public function trySave(Doctrine_Connection $conn = null) {
public function trySave(?Doctrine_Connection $conn = null) {
try {
$this->save($conn);
return true;
Expand All @@ -1809,7 +1809,7 @@ public function trySave(Doctrine_Connection $conn = null) {
* @throws Doctrine_Connection_Exception if something fails at database level
* @return integer number of rows affected
*/
public function replace(Doctrine_Connection $conn = null)
public function replace(?Doctrine_Connection $conn = null)
{
if ($conn === null) {
$conn = $this->_table->getConnection();
Expand Down Expand Up @@ -2210,7 +2210,7 @@ public function getIterator()
*
* @return boolean true if successful
*/
public function delete(Doctrine_Connection $conn = null)
public function delete(?Doctrine_Connection $conn = null)
{
if ($conn == null) {
$conn = $this->_table->getConnection();
Expand Down

0 comments on commit 0c743e4

Please sign in to comment.