mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-19 21:58:08 -04:00
workaround PHP 8.4 deprecations
lifted from https://github.com/dmester/jdenticon-php/pull/10
This commit is contained in:
+1
-1
@@ -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();
|
||||||
|
|||||||
+1
-1
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user