mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
feat: STUBS!
This commit is contained in:
28
php-packages/phpstan/stubs/Illuminate/Database/Model.stub
Normal file
28
php-packages/phpstan/stubs/Illuminate/Database/Model.stub
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Eloquent;
|
||||
|
||||
/**
|
||||
* @implements \ArrayAccess<string, mixed>
|
||||
*/
|
||||
abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
{
|
||||
/**
|
||||
* Update the model in the database.
|
||||
*
|
||||
* @param array<model-property<static>, mixed> $attributes
|
||||
* @param array<int|string, mixed> $options
|
||||
* @return bool
|
||||
*/
|
||||
public function update(array $attributes = [], array $options = []);
|
||||
|
||||
/**
|
||||
* Begin querying a model with eager loading.
|
||||
*
|
||||
* @param non-empty-string|array<int|string, (\Closure)|string> $relations
|
||||
* @return \Illuminate\Database\Eloquent\Builder<static>
|
||||
*/
|
||||
public static function with($relations);
|
||||
}
|
||||
|
||||
class ModelNotFoundException extends \RuntimeException {}
|
Reference in New Issue
Block a user