PHP deprecation fixes, assigning null arguments in methods
This commit is contained in:
@@ -54,7 +54,7 @@ class InvoiceController extends Controller
|
||||
* @param string|null $code
|
||||
* @return View
|
||||
*/
|
||||
public function view(Invoice $o,string $code=NULL): View
|
||||
public function view(Invoice $o,?string $code=NULL): View
|
||||
{
|
||||
if ($code) {
|
||||
try {
|
||||
|
@@ -159,7 +159,7 @@ class SupplierController extends Controller
|
||||
* @param int|null $id
|
||||
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
|
||||
*/
|
||||
public function product_view_type(Request $request,string $type,int $id=NULL)
|
||||
public function product_view_type(Request $request,string $type,?int $id=NULL)
|
||||
{
|
||||
$o = $id ? Supplier::offeringTypeClass($type)->findOrFail($id) : NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user