Type error: Argument 1 passed to Illuminate\Database\Grammar::parameterize()

PHP
 Error:Type error: Argument 1 passed to Illuminate\Database\Grammar::parameterize()
 $not->addNot([$P->u_id],'Hold', 6, '0');
 
 Solve: Remove this [] from first parameter.
 $not->addNot($P->u_id,'Hold', 6, '0');
Source

Also in PHP: