1 | <?php |
||
8 | class CreateGuidedImageablesTable extends Migration |
||
9 | { |
||
10 | /** |
||
11 | * @var ConfigProvider |
||
12 | */ |
||
13 | private $configProvider; |
||
14 | |||
15 | /** |
||
16 | * CreateGuidedImagesTable constructor. |
||
17 | * |
||
18 | * @param ConfigProvider $configProvider |
||
19 | */ |
||
20 | public function __construct(ConfigProvider $configProvider) |
||
24 | |||
25 | /** |
||
26 | * Run the migrations. |
||
27 | */ |
||
28 | public function up() |
||
48 | |||
49 | /** |
||
50 | * Reverse the migrations. |
||
51 | */ |
||
52 | public function down() |
||
57 | } |
||
58 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: