Skip to content

Commit

Permalink
Make TLiteralFloat::$value and TLiteralInt::$value typed
Browse files Browse the repository at this point in the history
Fixes #9516
  • Loading branch information
weirdan committed Aug 20, 2023
1 parent 82a1806 commit 9aade96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Psalm/Type/Atomic/TLiteralFloat.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
*/
final class TLiteralFloat extends TFloat
{
/** @var float */
public $value;
public float $value;

Check failure on line 12 in src/Psalm/Type/Atomic/TLiteralFloat.php

View workflow job for this annotation

GitHub Actions / Check backward compatibility

Type of property Psalm\Type\Atomic\TLiteralFloat#$value changed from having no type to float

public function __construct(float $value, bool $from_docblock = false)
{
Expand Down
3 changes: 1 addition & 2 deletions src/Psalm/Type/Atomic/TLiteralInt.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
*/
final class TLiteralInt extends TInt
{
/** @var int */
public $value;
public int $value;

Check failure on line 12 in src/Psalm/Type/Atomic/TLiteralInt.php

View workflow job for this annotation

GitHub Actions / Check backward compatibility

Type of property Psalm\Type\Atomic\TLiteralInt#$value changed from having no type to int

public function __construct(int $value, bool $from_docblock = false)
{
Expand Down

0 comments on commit 9aade96

Please sign in to comment.