-
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from spatie/2.x
[2.x] Types; no magic, final, strict_types;
- Loading branch information
Showing
34 changed files
with
222 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,7 @@ on: | |
push: | ||
paths: | ||
- '**.php' | ||
- 'psalm.xml' | ||
- 'psalm.yml' | ||
- 'psalm*' | ||
|
||
jobs: | ||
psalm: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="5.22.1@e9dad66e11274315dac27e08349c628c7d6a1a43"> | ||
<file src="src/Generators/BaseOutlook.php"> | ||
<MissingDocblockType> | ||
<code><![CDATA[protected $dateFormat = 'Y-m-d';]]></code> | ||
<code><![CDATA[protected $dateTimeFormat = 'Y-m-d\TH:i:s\Z';]]></code> | ||
</MissingDocblockType> | ||
<MissingPropertyType> | ||
<code><![CDATA[$dateFormat]]></code> | ||
<code><![CDATA[$dateTimeFormat]]></code> | ||
</MissingPropertyType> | ||
<UndefinedInterfaceMethod> | ||
<code><![CDATA[setTimezone]]></code> | ||
<code><![CDATA[setTimezone]]></code> | ||
</UndefinedInterfaceMethod> | ||
</file> | ||
<file src="src/Generators/Google.php"> | ||
<MissingDocblockType> | ||
<code><![CDATA[protected $dateFormat = 'Ymd';]]></code> | ||
</MissingDocblockType> | ||
<MissingPropertyType> | ||
<code><![CDATA[$dateFormat]]></code> | ||
</MissingPropertyType> | ||
</file> | ||
<file src="src/Generators/Ics.php"> | ||
<MissingDocblockType> | ||
<code><![CDATA[protected $dateFormat = 'Ymd';]]></code> | ||
</MissingDocblockType> | ||
<MissingPropertyType> | ||
<code><![CDATA[$dateFormat]]></code> | ||
</MissingPropertyType> | ||
</file> | ||
<file src="src/Generators/Yahoo.php"> | ||
<MissingDocblockType> | ||
<code><![CDATA[protected $dateFormat = 'Ymd';]]></code> | ||
</MissingDocblockType> | ||
<MissingPropertyType> | ||
<code><![CDATA[$dateFormat]]></code> | ||
</MissingPropertyType> | ||
<UndefinedInterfaceMethod> | ||
<code><![CDATA[setTimezone]]></code> | ||
<code><![CDATA[setTimezone]]></code> | ||
</UndefinedInterfaceMethod> | ||
</file> | ||
<file src="src/Link.php"> | ||
<MissingParamType> | ||
<code><![CDATA[$property]]></code> | ||
</MissingParamType> | ||
<PropertyTypeCoercion> | ||
<code><![CDATA[clone $from]]></code> | ||
<code><![CDATA[clone $to]]></code> | ||
</PropertyTypeCoercion> | ||
<UndefinedInterfaceMethod> | ||
<code><![CDATA[modify]]></code> | ||
<code><![CDATA[setTimezone]]></code> | ||
</UndefinedInterfaceMethod> | ||
<UnsafeInstantiation/> | ||
</file> | ||
<file src="tests/Generators/IcsGeneratorTest.php"> | ||
<InvalidArgument> | ||
<code><![CDATA[$presentationOptions]]></code> | ||
</InvalidArgument> | ||
</file> | ||
</files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Spatie\CalendarLinks; | ||
|
||
interface Generator | ||
{ | ||
/** | ||
* Generate an URL to add event to calendar. | ||
* @param \Spatie\CalendarLinks\Link $link | ||
* @return string | ||
* Generate a URL to add event to calendar. | ||
* @return non-empty-string | ||
*/ | ||
public function generate(Link $link): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.