Skip to content

Updated for PHP 8. Tested most with Unit Tests. #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 11, 2021

Conversation

CobraSphere-IB
Copy link
Contributor

@CobraSphere-IB CobraSphere-IB commented Apr 3, 2021

Updated for PHP 8. Tested most with Unit Tests.
Recommend full testing by maintainer.

On branch updated-for-php8
Changes to be committed:
modified: .gitignore
new file: .phpunit.result.cache
modified: composer.json
modified: phpunit.xml
new file: phpunit.xml.bak
modified: tests/BatchTest.php
modified: tests/CampaignsTest.php
modified: tests/SegmentsTest.php
modified: tests/SubscribersTest.php
modified: tests/bootstrap.php

Recommend full testing my maintainer.

On branch updated-for-php8
Changes to be committed:
	modified:   .gitignore
	new file:   .phpunit.result.cache
	modified:   composer.json
	modified:   phpunit.xml
	new file:   phpunit.xml.bak
	modified:   tests/BatchTest.php
	modified:   tests/CampaignsTest.php
	modified:   tests/SegmentsTest.php
	modified:   tests/SubscribersTest.php
	modified:   tests/bootstrap.php
@@ -0,0 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":4172:{a:2:{s:7:"defects";a:29:{s:41:"MailerLiteApi\Tests\BatchTest::send_batch";i:4;s:50:"MailerLiteApi\Tests\CampaignsTest::create_campaign";i:4;s:48:"MailerLiteApi\Tests\CampaignsTest::get_campaigns";i:3;s:49:"MailerLiteApi\Tests\FieldsTest::check_fields_data";i:4;s:44:"MailerLiteApi\Tests\FieldsTest::create_field";i:4;s:49:"MailerLiteApi\Tests\GroupsTest::check_groups_data";i:4;s:55:"MailerLiteApi\Tests\GroupsTest::check_single_group_data";i:4;s:60:"MailerLiteApi\Tests\GroupsTest::check_group_subscribers_data";i:4;s:73:"MailerLiteApi\Tests\GroupsTest::check_group_subscribers_unsubscribed_data";i:4;s:60:"MailerLiteApi\Tests\GroupsTest::check_groups_data_with_limit";i:4;s:71:"MailerLiteApi\Tests\GroupsTest::check_group_subscribers_data_with_limit";i:4;s:50:"MailerLiteApi\Tests\GroupsTest::check_groups_count";i:4;s:44:"MailerLiteApi\Tests\GroupsTest::create_group";i:4;s:44:"MailerLiteApi\Tests\GroupsTest::update_group";i:4;s:57:"MailerLiteApi\Tests\GroupsTest::add_and_remove_subscriber";i:4;s:50:"MailerLiteApi\Tests\GroupsTest::import_subscribers";i:4;s:46:"MailerLiteApi\Tests\RestClientTest::get_method";i:4;s:61:"MailerLiteApi\Tests\RestClientTest::mailerlite_sdk_user_agent";i:4;s:47:"MailerLiteApi\Tests\RestClientTest::post_method";i:4;s:46:"MailerLiteApi\Tests\RestClientTest::put_method";i:4;s:49:"MailerLiteApi\Tests\RestClientTest::delete_method";i:4;s:46:"MailerLiteApi\Tests\SegmentsTest::get_segments";i:3;s:40:"MailerLiteApi\Tests\StatsTest::get_stats";i:3;s:52:"MailerLiteApi\Tests\StatsTest::get_stats_in_the_past";i:4;s:60:"MailerLiteApi\Tests\SubscribersTest::get_subscriber_by_email";i:4;s:57:"MailerLiteApi\Tests\SubscribersTest::get_subscriber_by_id";i:4;s:54:"MailerLiteApi\Tests\SubscribersTest::update_subscriber";i:4;s:60:"MailerLiteApi\Tests\SubscribersTest::search_for_a_subscriber";i:3;s:7:"Warning";i:6;}s:5:"times";a:34:{s:73:"MailerLiteApi\Tests\BatchTest::at_least_one_request_is_provided_exception";d:0.012;s:76:"MailerLiteApi\Tests\BatchTest::provided_requests_must_be_batch_request_class";d:0.002;s:41:"MailerLiteApi\Tests\BatchTest::send_batch";d:2.054;s:50:"MailerLiteApi\Tests\CampaignsTest::create_campaign";d:0.472;s:48:"MailerLiteApi\Tests\CampaignsTest::get_campaigns";d:0.415;s:49:"MailerLiteApi\Tests\FieldsTest::check_fields_data";d:0.661;s:44:"MailerLiteApi\Tests\FieldsTest::create_field";d:0.499;s:49:"MailerLiteApi\Tests\GroupsTest::check_groups_data";d:2.65;s:55:"MailerLiteApi\Tests\GroupsTest::check_single_group_data";d:2.677;s:60:"MailerLiteApi\Tests\GroupsTest::check_group_subscribers_data";d:2.75;s:73:"MailerLiteApi\Tests\GroupsTest::check_group_subscribers_unsubscribed_data";d:2.447;s:60:"MailerLiteApi\Tests\GroupsTest::check_groups_data_with_limit";d:4.036;s:71:"MailerLiteApi\Tests\GroupsTest::check_group_subscribers_data_with_limit";d:2.214;s:50:"MailerLiteApi\Tests\GroupsTest::check_groups_count";d:2.395;s:44:"MailerLiteApi\Tests\GroupsTest::create_group";d:2.437;s:44:"MailerLiteApi\Tests\GroupsTest::update_group";d:2.472;s:57:"MailerLiteApi\Tests\GroupsTest::add_and_remove_subscriber";d:10.493;s:50:"MailerLiteApi\Tests\GroupsTest::import_subscribers";d:3.695;s:51:"MailerLiteApi\Tests\MailerLiteTest::invalid_api_key";d:0;s:46:"MailerLiteApi\Tests\RestClientTest::get_method";d:0.506;s:61:"MailerLiteApi\Tests\RestClientTest::mailerlite_sdk_user_agent";d:0.464;s:47:"MailerLiteApi\Tests\RestClientTest::post_method";d:0.479;s:46:"MailerLiteApi\Tests\RestClientTest::put_method";d:0.475;s:49:"MailerLiteApi\Tests\RestClientTest::delete_method";d:0.433;s:57:"MailerLiteApi\Tests\RestClientTest::error_internal_server";d:0.429;s:45:"MailerLiteApi\Tests\RestClientTest::error_400";d:0.468;s:46:"MailerLiteApi\Tests\SegmentsTest::get_segments";d:0.242;s:40:"MailerLiteApi\Tests\StatsTest::get_stats";d:0.248;s:52:"MailerLiteApi\Tests\StatsTest::get_stats_in_the_past";d:0.197;s:60:"MailerLiteApi\Tests\SubscribersTest::get_subscriber_by_email";d:0.796;s:57:"MailerLiteApi\Tests\SubscribersTest::get_subscriber_by_id";d:0.86;s:54:"MailerLiteApi\Tests\SubscribersTest::update_subscriber";d:0.891;s:60:"MailerLiteApi\Tests\SubscribersTest::search_for_a_subscriber";d:1.064;s:7:"Warning";d:0.001;}}}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be ignored

composer.json Outdated
@@ -6,7 +6,7 @@
"keywords": ["mailerlite", "sdk", "email", "marketing"],
"type": "library",
"require": {
"php" : "^7.1",
"php" : "^8.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt they will accept this version bump. It should be "^7.1 || ^8.0"

@MarGul
Copy link

MarGul commented Jul 30, 2021

Do we have any updates regarding this?

@MarGul MarGul mentioned this pull request Jul 30, 2021
On branch updated-for-php8
Changes to be committed:
	modified:   .gitignore
	modified:   composer.json
Changes to be committed:
	modified:   .gitignore
_notes
.phpunit.result.cache

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file itself should be deleted from the repo too

Changes to be committed:
	deleted:    .phpunit.result.cache
composer.json Outdated
@@ -6,7 +6,7 @@
"keywords": ["mailerlite", "sdk", "email", "marketing"],
"type": "library",
"require": {
"php" : "^7.1",
"php" : "7.1 || ^8.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @arokettu , this should be ^7.1 || ^8.0

Changes to be committed:
	modified:   composer.json
@nklmilojevic
Copy link

Hey all! Thank you for contributing. We will try to test and merge the changes this week and let you know. 🙌🏻

@johnkelesidis johnkelesidis merged commit 9fb6b8a into mailerlite:main Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants