Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Tests/Fixtures/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@

namespace Propel\Bundle\PropelBundle\Tests\Fixtures;

class Column extends \ColumnMap

Check notice on line 14 in Tests/Fixtures/Column.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Fully qualified name usage

Qualifier can be replaced with an import
{
public function __construct(private $name, protected $type)

Check warning on line 16 in Tests/Fixtures/Column.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Missing parent call for constructor

Missing parent constructor call
{
$this->phpName = ucfirst($this->name);
}

public function isText()
public function isText(): bool
{
if (!$this->type) {
return false;
}
return match ($this->type) {
\PropelColumnTypes::CHAR, \PropelColumnTypes::VARCHAR, \PropelColumnTypes::LONGVARCHAR, \PropelColumnTypes::BLOB, \PropelColumnTypes::CLOB, \PropelColumnTypes::CLOB_EMU => true,

Check notice on line 27 in Tests/Fixtures/Column.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Fully qualified name usage

Qualifier can be replaced with an import

Check notice on line 27 in Tests/Fixtures/Column.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Fully qualified name usage

Qualifier can be replaced with an import

Check notice on line 27 in Tests/Fixtures/Column.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Fully qualified name usage

Qualifier can be replaced with an import

Check notice on line 27 in Tests/Fixtures/Column.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Fully qualified name usage

Qualifier can be replaced with an import

Check notice on line 27 in Tests/Fixtures/Column.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Fully qualified name usage

Qualifier can be replaced with an import

Check notice on line 27 in Tests/Fixtures/Column.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Fully qualified name usage

Qualifier can be replaced with an import
default => false,
};
}
Expand All @@ -34,7 +34,7 @@
return $this->isText() ? 255 : 0;
}

public function isNotNull()
public function isNotNull(): bool
{
return 'id' === $this->name;
}
Expand Down
Loading