Skip to content

Commit

Permalink
Merge pull request #39 from OskarStark/feature/cs-fixes-5
Browse files Browse the repository at this point in the history
CS-Fixer: Enable `declare_strict_types`
  • Loading branch information
slunak authored Aug 21, 2024
2 parents d688cf4 + 3b8c615 commit 32a001a
Show file tree
Hide file tree
Showing 86 changed files with 171 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@
],
'yoda_style' => false,
'php_unit_test_case_static_method_calls' => false,
'phpdoc_summary' => false,

// temp disabled to keep the diff small in the first run
'declare_strict_types' => false,
'strict_comparison' => false,
'phpdoc_summary' => false,
'nullable_type_declaration_for_default_null_value' => false,
]));

Expand Down
2 changes: 2 additions & 0 deletions src/Api/Glances/Glance.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Glances/GlanceDataFields.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Groups/Group.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Licensing/License.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Message/Attachment.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Message/CustomSound.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Message/Message.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Message/Notification.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Message/Priority.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Message/Sound.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Receipts/Receipt.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/Subscription/Subscription.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Api/UserGroupValidation/Validation.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/AssignLicenseClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/CancelRetryClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/CheckLicenseClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Client.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/ClientInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Curl/Curl.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/GlancesClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/GroupsClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/MessageClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/ReceiptClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Request/Request.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Request/RequestInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/AddUserToGroupResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/Base/Response.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/CancelRetryResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/CreateGroupResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/DisableUserInGroupResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/EnableUserInGroupResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/GlancesResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/LicenseResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/MessageResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/ReceiptResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/RemoveUserFromGroupResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/RenameGroupResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/RetrieveGroupResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/SubscriptionResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/Response/UserGroupValidationResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/SubscriptionClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Client/UserGroupValidationClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Exception/LogicException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Recipient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Api/Glances/GlanceDataFieldsTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Pushover package.
*
Expand Down
Loading

0 comments on commit 32a001a

Please sign in to comment.