Skip to content

Php 8.4 Deprecation of Non-nullable Parameters Defaulting to null #3521

@oleibman

Description

@oleibman

My apologies if this is premature, but Php8.4 is already in Beta, and will be a production version soon enough. You have already merged PR #3508 which addresses this in one module, but it is not yet part of a release, and there are many other places in your code which have the same problem and do not yet appear to be addressed.

I used the following regular expression to find other statements with the problem. I hope it is sufficient, but I am at least confident there are no false positives:

/(?<![?\w])\w+ [$]\w+ = null[,)]/

Here is the list:

  • Helpers.php
    • public static function uniord(string $c, string $encoding = null)
    • public static function unichr(int $c, string $encoding = null)
  • Options.php (addressed by PR Address php8.4 deprecation of with type hinting on NULL #3508)
    • public function __construct(array $attributes = null)
  • FrameDecorator/AbstractFrameRedecorator.php
    • final function reflow(Block $block = null)
  • FrameReflower/AbstractFrameReflower.php
    • abstract function reflow(Block $block = null);
  • FrameReflower/Block.php
    • function reflow(BlockFrameDecorator $block = null)
  • FrameReflower/Image.php
    • function reflow(BlockFrameDecorator $block = null)
  • FrameReflower/Inline.php
    • function reflow(BlockFrameDecorator $block = null)
  • FrameReflower/ListBullet.php
    • function reflow(BlockFrameDecorator $block = null)
  • FrameReflower/NullFrameReflower.php
    • function reflow(BlockFrameDecorator $block = null)
  • FrameReflower/Page.php
    • function reflow(BlockFrameDecorator $block = null)
  • FrameReflower/Table.php
    • function reflow(BlockFrameDecorator $block = null)
  • FrameReflower/TableCell.php
    • function reflow(BlockFrameDecorator $block = null)
  • FrameReflower/TableRow.php
    • function reflow(BlockFrameDecorator $block = null)
  • FrameReflower/TableRowGroup.php
    • function reflow(BlockFrameDecorator $block = null)
  • FrameReflower/Text.php
    • function reflow(BlockFrameDecorator $block = null)
  • php-font-lib\src\FontLib\TrueType
    • private function uniord (string $c, string $encoding = null)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions