Skip to content

Commit

Permalink
Removed default values from method signatures
Browse files Browse the repository at this point in the history
As optional before required params is forbidden in PHP 8.0 these signatures
needed to be changed and the functionality of the method adapted
accordingly to still retain the original behaviour.

Signed-off-by: Alexander Wozniak <wozniak@oktopos.com>
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
  • Loading branch information
Alexander Wozniak authored and glensc committed Mar 15, 2021
1 parent 1cfdc03 commit 0738310
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/zend-pdf/library/Zend/Pdf/Element/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Zend_Pdf_Element_Reference extends Zend_Pdf_Element
* @param Zend_Pdf_ElementFactory $factory
* @throws Zend_Pdf_Exception
*/
public function __construct($objNum, $genNum = 0, Zend_Pdf_Element_Reference_Context $context, Zend_Pdf_ElementFactory $factory)
public function __construct($objNum, $genNum, Zend_Pdf_Element_Reference_Context $context, Zend_Pdf_ElementFactory $factory)
{
if ( !(is_integer($objNum) && $objNum > 0) ) {
// require_once 'Zend/Pdf/Exception.php';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public function clearMessages($queueName = '')
* @param Zend_Service_WindowsAzure_Storage_QueueMessage $message Message to delete from queue. A message retrieved using "peekMessages" can NOT be deleted!
* @throws Zend_Service_WindowsAzure_Exception
*/
public function deleteMessage($queueName = '', Zend_Service_WindowsAzure_Storage_QueueMessage $message)
public function deleteMessage($queueName, Zend_Service_WindowsAzure_Storage_QueueMessage $message)
{
if ($queueName === '') {
// require_once 'Zend/Service/WindowsAzure/Exception.php';
Expand Down

0 comments on commit 0738310

Please sign in to comment.