mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-03 09:49:14 +02:00
workaround PHP 8.4 deprecations
lifted from https://github.com/dmester/jdenticon-php/pull/10
This commit is contained in:
parent
7b444bf62b
commit
811b62b538
2 changed files with 121 additions and 121 deletions
2
vendor/jdenticon/jdenticon/src/Identicon.php
vendored
2
vendor/jdenticon/jdenticon/src/Identicon.php
vendored
|
@ -426,7 +426,7 @@ class Identicon
|
||||||
*/
|
*/
|
||||||
public function draw(
|
public function draw(
|
||||||
\Jdenticon\Rendering\RendererInterface $renderer,
|
\Jdenticon\Rendering\RendererInterface $renderer,
|
||||||
\Jdenticon\Rendering\Rectangle $rect = null)
|
?\Jdenticon\Rendering\Rectangle $rect = null)
|
||||||
{
|
{
|
||||||
if ($rect === null) {
|
if ($rect === null) {
|
||||||
$rect = $this->getIconBounds();
|
$rect = $this->getIconBounds();
|
||||||
|
|
|
@ -53,7 +53,7 @@ class IdenticonStyle
|
||||||
*/
|
*/
|
||||||
private $hues;
|
private $hues;
|
||||||
|
|
||||||
public function __construct(array $options = null)
|
public function __construct(?array $options = null)
|
||||||
{
|
{
|
||||||
$this->backgroundColor = self::getDefaultBackgroundColor();
|
$this->backgroundColor = self::getDefaultBackgroundColor();
|
||||||
$this->padding = self::getDefaultPadding();
|
$this->padding = self::getDefaultPadding();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue