Skip to content

Conversation

jbelien
Copy link
Owner

@jbelien jbelien commented Jan 28, 2023

No description provided.

@jbelien jbelien self-assigned this Jan 28, 2023

class Test
{
private string $string;

Check failure

Code scanning / PHPStan

Property Test::$string is never read, only written.

Property Test::$string is never read, only written.
class Test
{
private string $string;
private int $int;

Check failure

Code scanning / PHPStan

Property Test::$int is never read, only written.

Property Test::$int is never read, only written.

public function __construct(string $string, int $int)
{
$this->string = intval($string);

Check failure

Code scanning / PHPStan

Property Test::$string (string) does not accept int.

Property Test::$string (string) does not accept int.
public function __construct(string $string, int $int)
{
$this->string = intval($string);
$this->int = (string) $int;

Check failure

Code scanning / PHPStan

Property Test::$int (int) does not accept string.

Property Test::$int (int) does not accept string.
@jbelien jbelien marked this pull request as ready for review January 28, 2023 14:28
@jbelien jbelien merged commit 96e5ef9 into master Jan 28, 2023
@jbelien jbelien deleted the ga branch January 28, 2023 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant