Compare commits
No commits in common. "a9ecdfe4bbd3925538ed61125d108f4cb64cfcf0" and "3b63a73161b2585af2650c56c1caf7d75bde3745" have entirely different histories.
a9ecdfe4bb
...
3b63a73161
|
@ -155,9 +155,8 @@ class AddressBookBackend extends AbstractBackend
|
||||||
* If the backend supports this, it may allow for some speed-ups.
|
* If the backend supports this, it may allow for some speed-ups.
|
||||||
*
|
*
|
||||||
* @param mixed $addressBookId
|
* @param mixed $addressBookId
|
||||||
* @param array<int, string> $uris
|
|
||||||
*
|
*
|
||||||
* @return array<int, mixed>
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getMultipleCards($addressBookId, array $uris)
|
public function getMultipleCards($addressBookId, array $uris)
|
||||||
{
|
{
|
||||||
|
|
|
@ -136,11 +136,10 @@ class Principal implements PrincipalBackendInterface
|
||||||
*
|
*
|
||||||
* @param string $principal
|
* @param string $principal
|
||||||
*
|
*
|
||||||
* @return array<int, string>|null
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getGroupMemberSet($principal)
|
public function getGroupMemberSet($principal)
|
||||||
{
|
{
|
||||||
return [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -148,7 +147,7 @@ class Principal implements PrincipalBackendInterface
|
||||||
*
|
*
|
||||||
* @param string $principal
|
* @param string $principal
|
||||||
*
|
*
|
||||||
* @return array<int, string>|null
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getGroupMembership($principal)
|
public function getGroupMembership($principal)
|
||||||
{
|
{
|
||||||
|
@ -156,7 +155,7 @@ class Principal implements PrincipalBackendInterface
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ['addressbooks/' . $matches[1]];
|
return ['addressbooks/'.$matches[1]];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -165,8 +164,6 @@ class Principal implements PrincipalBackendInterface
|
||||||
* The principals should be passed as a list of uri's.
|
* The principals should be passed as a list of uri's.
|
||||||
*
|
*
|
||||||
* @param string $principal
|
* @param string $principal
|
||||||
* @param array<int, string> $members
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function setGroupMemberSet($principal, array $members)
|
public function setGroupMemberSet($principal, array $members)
|
||||||
{
|
{
|
||||||
|
@ -179,7 +176,7 @@ class Principal implements PrincipalBackendInterface
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'{DAV:}displayname' => $user->name,
|
'{DAV:}displayname' => $user->name,
|
||||||
'uri' => 'principals/' . $user->email,
|
'uri' => 'principals/'.$user->email,
|
||||||
'{http://sabredav.org/ns}email-address' => $user->email,
|
'{http://sabredav.org/ns}email-address' => $user->email,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,6 @@ use Sabre\CardDAV\AddressBookRoot;
|
||||||
use Sabre\CardDAV\Plugin as CardDAVPlugin;
|
use Sabre\CardDAV\Plugin as CardDAVPlugin;
|
||||||
use Sabre\DAV\Auth\Plugin as AuthPlugin;
|
use Sabre\DAV\Auth\Plugin as AuthPlugin;
|
||||||
use Sabre\DAV\Browser\Plugin as BrowserPlugin;
|
use Sabre\DAV\Browser\Plugin as BrowserPlugin;
|
||||||
use Sabre\DAV\ServerPlugin;
|
|
||||||
use Sabre\DAVACL\AbstractPrincipalCollection;
|
use Sabre\DAVACL\AbstractPrincipalCollection;
|
||||||
use Sabre\DAVACL\Plugin as AclPlugin;
|
use Sabre\DAVACL\Plugin as AclPlugin;
|
||||||
use Sabre\DAVACL\PrincipalCollection;
|
use Sabre\DAVACL\PrincipalCollection;
|
||||||
|
@ -51,9 +50,6 @@ class ServiceProvider extends BaseServiceProvider
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array<int, ServerPlugin>
|
|
||||||
*/
|
|
||||||
private function plugins(): array
|
private function plugins(): array
|
||||||
{
|
{
|
||||||
$authBackend = new AuthBackend();
|
$authBackend = new AuthBackend();
|
||||||
|
|
|
@ -12,14 +12,15 @@ class Handler extends ExceptionHandler
|
||||||
/**
|
/**
|
||||||
* A list of the exception types that are not reported.
|
* A list of the exception types that are not reported.
|
||||||
*
|
*
|
||||||
* @var array<int, class-string<Throwable>>
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
protected $dontReport = [];
|
protected $dontReport = [
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of the inputs that are never flashed for validation exceptions.
|
* A list of the inputs that are never flashed for validation exceptions.
|
||||||
*
|
*
|
||||||
* @var array<int, string>
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
protected $dontFlash = [
|
protected $dontFlash = [
|
||||||
'password',
|
'password',
|
||||||
|
|
|
@ -8,7 +8,6 @@ use Spatie\LaravelData\Data;
|
||||||
class EditorData extends Data implements Editorable
|
class EditorData extends Data implements Editorable
|
||||||
{
|
{
|
||||||
|
|
||||||
/** @param array<int, mixed> $blocks */
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public string $version,
|
public string $version,
|
||||||
public array $blocks,
|
public array $blocks,
|
||||||
|
@ -48,9 +47,6 @@ class EditorData extends Data implements Editorable
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array<int, string> $replacements
|
|
||||||
*/
|
|
||||||
public function replaceWithList(string $blockContent, array $replacements): self
|
public function replaceWithList(string $blockContent, array $replacements): self
|
||||||
{
|
{
|
||||||
$this->blocks = collect($this->blocks)->map(function ($block) use ($blockContent, $replacements) {
|
$this->blocks = collect($this->blocks)->map(function ($block) use ($blockContent, $replacements) {
|
||||||
|
|
|
@ -12,9 +12,6 @@ class SettingStoreAction
|
||||||
{
|
{
|
||||||
use AsAction;
|
use AsAction;
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array<string, string>
|
|
||||||
*/
|
|
||||||
public function rules(): array
|
public function rules(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|
56
phpstan.neon
56
phpstan.neon
|
@ -6,7 +6,6 @@ parameters:
|
||||||
|
|
||||||
stubFiles:
|
stubFiles:
|
||||||
- tests/stub/phpstan/TestResponse.stub
|
- tests/stub/phpstan/TestResponse.stub
|
||||||
- tests/stub/phpstan/Settings.stub
|
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
- app
|
- app
|
||||||
|
@ -34,6 +33,61 @@ parameters:
|
||||||
count: 1
|
count: 1
|
||||||
path: app/Activity.php
|
path: app/Activity.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Method App\\\\Dav\\\\AddressBookBackend\\:\\:getMultipleCards\\(\\) has parameter \\$uris with no value type specified in iterable type array\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Dav/AddressBookBackend.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Method App\\\\Dav\\\\AddressBookBackend\\:\\:getMultipleCards\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Dav/AddressBookBackend.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Method App\\\\Dav\\\\Principal\\:\\:getGroupMemberSet\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Dav/Principal.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Method App\\\\Dav\\\\Principal\\:\\:getGroupMemberSet\\(\\) should return array but return statement is missing\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Dav/Principal.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Method App\\\\Dav\\\\Principal\\:\\:getGroupMembership\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Dav/Principal.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Method App\\\\Dav\\\\Principal\\:\\:getGroupMembership\\(\\) should return array but returns null\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Dav/Principal.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Method App\\\\Dav\\\\Principal\\:\\:setGroupMemberSet\\(\\) has no return type specified\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Dav/Principal.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Method App\\\\Dav\\\\Principal\\:\\:setGroupMemberSet\\(\\) has parameter \\$members with no value type specified in iterable type array\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Dav/Principal.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Method App\\\\Dav\\\\ServiceProvider\\:\\:plugins\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Dav/ServiceProvider.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^PHPDoc type array\\<string\\> of property App\\\\Exceptions\\\\Handler\\:\\:\\$dontFlash is not covariant with PHPDoc type array\\<int, string\\> of overridden property Illuminate\\\\Foundation\\\\Exceptions\\\\Handler\\:\\:\\$dontFlash\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Exceptions/Handler.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^PHPDoc type array\\<string\\> of property App\\\\Exceptions\\\\Handler\\:\\:\\$dontReport is not covariant with PHPDoc type array\\<int, class\\-string\\<Throwable\\>\\> of overridden property Illuminate\\\\Foundation\\\\Exceptions\\\\Handler\\:\\:\\$dontReport\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: app/Exceptions/Handler.php
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Method App\\\\Http\\\\Controllers\\\\Auth\\\\RegisterController\\:\\:create\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
|
message: "#^Method App\\\\Http\\\\Controllers\\\\Auth\\\\RegisterController\\:\\:create\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
|
|
@ -21,7 +21,6 @@ use Worksome\RequestFactories\RequestFactory;
|
||||||
* @method self isActive(bool $isActive)
|
* @method self isActive(bool $isActive)
|
||||||
* @method self isPrivate(bool $isPrivate)
|
* @method self isPrivate(bool $isPrivate)
|
||||||
* @method self export(ExportData $export)
|
* @method self export(ExportData $export)
|
||||||
* @method self preventionText(EditorRequestFactory $text)
|
|
||||||
*/
|
*/
|
||||||
class FormRequest extends RequestFactory
|
class FormRequest extends RequestFactory
|
||||||
{
|
{
|
||||||
|
|
|
@ -131,7 +131,7 @@ class FormUpdateActionTest extends FormTestCase
|
||||||
$this->login()->loginNami()->withoutExceptionHandling();
|
$this->login()->loginNami()->withoutExceptionHandling();
|
||||||
$form = Form::factory()->create();
|
$form = Form::factory()->create();
|
||||||
$payload = FormRequest::new()
|
$payload = FormRequest::new()
|
||||||
->preventionText(EditorRequestFactory::new()->text(10, 'lorem ipsum'))
|
->preventionText(EditorRequestFactory::new()->text(10, 'lorem ipsum')->create())
|
||||||
->state(['needs_prevention' => true])
|
->state(['needs_prevention' => true])
|
||||||
->create();
|
->create();
|
||||||
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Illuminate\Testing;
|
|
||||||
|
|
||||||
namespace Spatie\LaravelSettings;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @method static refresh()
|
|
||||||
*/
|
|
||||||
abstract class Settings
|
|
||||||
{
|
|
||||||
}
|
|
Loading…
Reference in New Issue