Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/filesystem/src/FilesystemManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ function (&$parent) use ($config) {
*/
protected function createFlysystem(FlysystemAdapter $adapter, array $config): FilesystemOperator
{
if ($config['read-only'] ?? false === true) {
if (($config['read-only'] ?? false) === true) {
/* @phpstan-ignore-next-line */
$adapter = new ReadOnlyFilesystemAdapter($adapter);
}
Expand Down
2 changes: 1 addition & 1 deletion src/foundation/src/Testing/TestResponseAssert.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static function __callStatic(string $name, array $arguments): void
*/
protected function injectResponseContext(ExpectationFailedException $exception): ExpectationFailedException
{
if ($this->response->getHeader('Content-Type') === 'application/json') {
if (str_contains($this->response->getHeader('Content-Type')[0] ?? '', 'application/json')) {
$testJson = new AssertableJsonString($this->response->getContent());

if (isset($testJson['errors'])) {
Expand Down
2 changes: 1 addition & 1 deletion src/session/src/Middleware/StartSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected function configHitsLottery(array $config): bool
protected function storeCurrentUrl(Session $session): void
{
if ($this->request->isMethod('GET')
&& ! $this->request->header('X-Requested-With') === 'XMLHttpRequest' // is not ajax
&& $this->request->header('X-Requested-With') !== 'XMLHttpRequest' // is not ajax
&& ! $this->isPrefetch()
) {
$session->setPreviousUrl($this->request->fullUrl());
Expand Down