-
Notifications
You must be signed in to change notification settings - Fork 232
Add support for PHP 8 #662
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ jobs: | |
matrix: | ||
php-version: | ||
- "7.4" | ||
- "8.0" | ||
|
||
steps: | ||
- name: "Checkout" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,18 +35,12 @@ class Guesser | |
/** @ODM\Field(type="bool") */ | ||
public $boolField; | ||
|
||
/** @ODM\Field(type="boolean") */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had this error in phpunit
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It'd be the best to extract these two asserts into a separate test that would allow deprecation notices but considering simplicity of the guesser I think we'll be just fine |
||
public $booleanField; | ||
|
||
/** @ODM\Field(type="float") */ | ||
public $floatField; | ||
|
||
/** @ODM\Field(type="int") */ | ||
public $intField; | ||
|
||
/** @ODM\Field(type="integer") */ | ||
public $integerField; | ||
|
||
/** @ODM\Field(type="collection") */ | ||
public $collectionField; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
{"name": "Jonathan H. Wage", "email": "[email protected]"} | ||
], | ||
"require": { | ||
"php": "^7.2", | ||
"php": "^7.2 || ^8.0", | ||
"doctrine/annotations": "^1.2", | ||
"doctrine/mongodb-odm": "^2.0.0", | ||
"doctrine/persistence": "^1.3.6|^2.0", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test was marked as risky. so I've added at least one assert.