title: Laravel - Trying to access array offset of value of type int
body: <p>I have an issue when I try to submit post requests to the database.
  The interesting thing is, that the error only occurs when I use PHP version 7.4.2.
  In PHP version 7.3.9 everything works fine.
  I am using Laravel 6.17.</p>
  
  <p>When is Laravel going to fix this issue ?</p>
  
  <p>That's my stack trace, when the error comes up.</p>
  
  <pre><code>Trying to access array offset on value of type int   
  in CreateCourseController.php line 176
  at HandleExceptions-&gt;handleError()
  in CreateCourseController.php line 176
  at CreateCourseController-&gt;createDates()
  in CreateCourseController.php line 101
  at CreateCourseController-&gt;createCourse()
  at call_user_func_array()
  in Controller.php line 54
  at Controller-&gt;callAction()
  in ControllerDispatcher.php line 45
  at ControllerDispatcher-&gt;dispatch()
  in Route.php line 219
  at Route-&gt;runController()
  in Route.php line 176
  at Route-&gt;run()
  in Router.php line 681
  at Router-&gt;Illuminate\Routing\{closure}()
  in Pipeline.php line 130
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in SubstituteBindings.php line 41
  at SubstituteBindings-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in VerifyCsrfToken.php line 76
  at VerifyCsrfToken-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in ShareErrorsFromSession.php line 49
  at ShareErrorsFromSession-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in StartSession.php line 56
  at StartSession-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in AddQueuedCookiesToResponse.php line 37
  at AddQueuedCookiesToResponse-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in EncryptCookies.php line 66
  at EncryptCookies-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in Pipeline.php line 105
  at Pipeline-&gt;then()
  in Router.php line 683
  at Router-&gt;runRouteWithinStack()
  in Router.php line 658
  at Router-&gt;runRoute()
  in Router.php line 624
  at Router-&gt;dispatchToRoute()
  in Router.php line 613
  at Router-&gt;dispatch()
  in Kernel.php line 170
  at Kernel-&gt;Illuminate\Foundation\Http\{closure}()
  in Pipeline.php line 130
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in TransformsRequest.php line 21
  at TransformsRequest-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in TransformsRequest.php line 21
  at TransformsRequest-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in ValidatePostSize.php line 27
  at ValidatePostSize-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in CheckForMaintenanceMode.php line 63
  at CheckForMaintenanceMode-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in TrustProxies.php line 57
  at TrustProxies-&gt;handle()
  in Pipeline.php line 171
  at Pipeline-&gt;Illuminate\Pipeline\{closure}()
  in Pipeline.php line 105
  at Pipeline-&gt;then()
  in Kernel.php line 145
  at Kernel-&gt;sendRequestThroughRouter()
  in Kernel.php line 110
  at Kernel-&gt;handle()
  in index.php line 55
  </code></pre>
  
  <p>Regards</p>