Trying to access array offset on value of type null when using RefreshDatabase in Laravel
I have finally resolved this issue - which it turns out is related to Telescope being installed and running in tests.
To resolve this issue (and ReflectionException: Class env does not exist
related issue) add the following line to the phpunit.xml
file between the <php>
nodes:
<env name="TELESCOPE_ENABLED" value="false"/>