$this->restaurant_id of type null|string is incompatible with the type integer expected by parameter $id of CoffeeCode\DataLayer\DataLayer::findById().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
28
$this->restaurant = (new Restaurant())->findById(/** @scrutinizer ignore-type */ $this->restaurant_id)->data();
The property restaurant_id does not exist on WagnerMontanini\GoomerApi\Models\ProductCategory. Since you implemented __get, consider adding a @property annotation.