Skip to content

Commit

Permalink
Add PHP 8.3: Class constant types
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayesh authored and pronskiy committed Nov 27, 2023
1 parent ce24e6e commit 9171ea0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/src/Blog/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class Tag
{
public const ALLOWED_TAGS = [
public const array ALLOWED_TAGS = [
'interview' => 'Interview',
'roundup' => 'PHP Roundup',
'update' => 'Update',
Expand Down
12 changes: 6 additions & 6 deletions app/src/Seo/SharingImageGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

class SharingImageGenerator
{
public const IMAGE_WIDTH = 1200;
public const int IMAGE_WIDTH = 1200;

public const IMAGE_HEIGHT = 630;
public const int IMAGE_HEIGHT = 630;

public const IMAGE_MARGINS = 40;
public const int IMAGE_MARGINS = 40;

public const TITLE_FONT_SIZE = 40;
public const int TITLE_FONT_SIZE = 40;

public const AUTHOR_FONT_SIZE = 14;
public const int AUTHOR_FONT_SIZE = 14;

protected bool $inverse = false;

Expand Down Expand Up @@ -117,4 +117,4 @@ protected function prepare(): GdImage

return $image;
}
}
}

0 comments on commit 9171ea0

Please sign in to comment.