{"tool":"phpstan","result":"failed","errors":13,"error_details":{"/Users/macbookair1/Desktop/Softys /rh-app/app/Actions/Employee/GetEmployee.php":[{"line":58,"message":"Using nullsafe property access \"?->name\" on left side of ?? is unnecessary. Use -> instead.","identifier":"nullsafe.neverNull"},{"line":105,"message":"Ternary operator condition is always true.","identifier":"ternary.alwaysTrue","tip":"Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your %configurationFile%."},{"line":122,"message":"Ternary operator condition is always true.","identifier":"ternary.alwaysTrue","tip":"Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your %configurationFile%."}],"/Users/macbookair1/Desktop/Softys /rh-app/app/Http/Controllers/Admin/EmployeeController.php":[{"line":93,"message":"Parameter #1 $data of method App\\Actions\\Employee\\CreateEmployee::handle() expects array{first_name: string, last_name: string, email?: string|null, phone?: string|null, birth_date?: string|null, address?: string|null, emergency_contact_name?: string|null, emergency_contact_phone?: string|null, ...}, array given.","identifier":"argument.type"},{"line":181,"message":"Parameter #2 $data of method App\\Actions\\Employee\\UpdateEmployee::handle() expects array{first_name: string, last_name: string, email?: string|null, phone?: string|null, birth_date?: string|null, address?: string|null, emergency_contact_name?: string|null, emergency_contact_phone?: string|null, ...}, array given.","identifier":"argument.type"},{"line":238,"message":"Parameter #2 $data of method App\\Actions\\Employee\\CreateEmployeeCareerEvent::handle() expects array{type: string, effective_date: string, new_job_title?: string|null, new_department_id?: int|null, new_manager_id?: int|null, note?: string|null}, array given.","identifier":"argument.type"},{"line":269,"message":"Parameter #2 $data of method App\\Actions\\Employee\\TerminateEmployee::handle() expects array{terminated_at: string, termination_reason: string, termination_note?: string|null}, array given.","identifier":"argument.type"},{"line":326,"message":"Parameter #2 $data of method App\\Actions\\Employee\\CreateEmployeeContract::handle() expects array{type: string, start_date: string, end_date?: string|null, job_title?: string|null, notes?: string|null, is_current?: bool, document?: Illuminate\\Http\\UploadedFile|null}, non-empty-array given.","identifier":"argument.type"},{"line":356,"message":"Parameter #3 $data of method App\\Actions\\Employee\\UpdateEmployeeContract::handle() expects array{type: string, start_date: string, end_date?: string|null, job_title?: string|null, notes?: string|null, is_current?: bool, document?: Illuminate\\Http\\UploadedFile|null}, non-empty-array given.","identifier":"argument.type"},{"line":430,"message":"Parameter #3 $data of method App\\Actions\\Employee\\CreateEmployeeAmendment::handle() expects array{effective_date: string, title: string, description?: string|null, document?: Illuminate\\Http\\UploadedFile|null}, non-empty-array given.","identifier":"argument.type"},{"line":463,"message":"Parameter #4 $data of method App\\Actions\\Employee\\UpdateEmployeeAmendment::handle() expects array{effective_date: string, title: string, description?: string|null, document?: Illuminate\\Http\\UploadedFile|null}, non-empty-array given.","identifier":"argument.type"},{"line":540,"message":"Parameter #2 $data of method App\\Actions\\Employee\\UploadEmployeeDocument::handle() expects array{type: string, title: string}, array given.","identifier":"argument.type"},{"line":613,"message":"Parameter #2 $data of method App\\Actions\\Leave\\AdjustLeaveBalance::handle() expects array{leave_type_id: int, year: int, entitled: float|int|string}, array given.","identifier":"argument.type"}]},"instructions":"Each error has an associated identifier, like `argument.type` or `return.missing`. Each error identifier has documentation at URL https://phpstan.org/error-identifiers/, which contains a code example, explanation why it is an error, and instructions on how to fix it. Before fixing the error, fetch the documentation page for its identifier. The error usually indicates a real bug or incorrect type in the code. Fix the underlying cause, do not just make the error go away. Do not add `@phpstan-ignore` comments, `@phpstan-ignore-next-line` comments, or baseline entries to suppress the error. Do not use assert() or inline @var PHPDoc tag to override PHPStan's inferred type. Do not add type casts just to silence errors. Do not widen parameter or return types just to make the error go away."}