| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 10 | public function updateEditForm(Form $form)  | 
            ||
| 11 |     { | 
            ||
| 12 | /** @var GridField $gridField */  | 
            ||
| 13 |         $gridField = $form->Fields()->fieldByName('QueuedJobDescriptor'); | 
            ||
| 14 |         if (!$gridField) { | 
            ||
| 15 | return;  | 
            ||
| 16 | }  | 
            ||
| 17 | |||
| 18 | $gridField->getConfig()  | 
            ||
| 19 | ->removeComponentsByType(GridFieldPaginator::class)  | 
            ||
| 20 | ->addComponent(  | 
            ||
| 21 | new GridFieldConfigurablePaginator(50, [50, 100, 200, 500])  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 22 | );  | 
            ||
| 23 | }  | 
            ||
| 24 | }  | 
            ||
| 25 | 
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: