query('SELECT a FROM b WHERE c = ?')->execute('foo')->fetch(); * \PDOStatement::execute(), on the other hand, returns boolean. Change it * to return $this and thus allow further method chaining. */ #[\ReturnTypeWillChange] public function execute($parameters = null): self { parent::execute($parameters); return $this; } }