for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord;
use Yiisoft\Db\Exception\Exception;
final class Cat extends Animal
{
public function populateRecord($row): void
parent::populateRecord($row);
$this->setDoes('meow');
}
public function getException(): void
throw new Exception('no');
/**
* This is to test if __isset catches the error.
*
* @throw DivisionByZeroError
*/
public function getThrowable(): float|int
return 5/0;