Skip to content

Conversation

@javabudd
Copy link

@javabudd javabudd commented Dec 8, 2020

References #12 and targets the 1.4.x branch.

Issues with required libraries:

@javabudd javabudd force-pushed the php8 branch 3 times, most recently from d4435c3 to 5fb7fb2 Compare December 9, 2020 05:54
Signed-off-by: andyo <[email protected]>

Add php 7.3, 7.4, and 8.0 matrices, remove < 7.3

Signed-off-by: andyo <[email protected]>

Add return types

Signed-off-by: andyo <[email protected]>

Use php 8 explicitly

Signed-off-by: andyo <[email protected]>

Clean up confusing class logic and ambiguous code

Signed-off-by: andyo <[email protected]>

Clean up doc blocks, add matching __set/__isset methods

Signed-off-by: andyo <[email protected]>

call new method

Signed-off-by: andyo <[email protected]>

call new method

Signed-off-by: andyo <[email protected]>

Update assertion calls

Signed-off-by: andyo <[email protected]>

update assert contains using string

Signed-off-by: andyo <[email protected]>

Implement ConfigProviderInterface and minor code cleanup

Signed-off-by: andyo <[email protected]>

Update string not contains assertions

Signed-off-by: andyo <[email protected]>

Fix method name

Signed-off-by: andyo <[email protected]>

require laminas/laminas-modulemanager

Signed-off-by: andyo <[email protected]>

Implement BootstrapListenerInterface

Signed-off-by: andyo <[email protected]>

Update onBootstrap signature to match interface

Signed-off-by: andyo <[email protected]>

Add return types

Signed-off-by: andyo <[email protected]>

Update ruleset path

Signed-off-by: andyo <[email protected]>

Fix rule path

Signed-off-by: andyo <[email protected]>

revert eventmanager constraint change

Signed-off-by: andyo <[email protected]>

Migrate phpunit.xml.dist schema

Signed-off-by: andyo <[email protected]>

use prophecy trait

Signed-off-by: andyo <[email protected]>

Update laminas/view to 2.11.3 and add phpspec/prophecy-phpunit to require-dev

Signed-off-by: andyo <[email protected]>

Clean up tests

Signed-off-by: andyo <[email protected]>

Revert set logic

Signed-off-by: andyo <[email protected]>

use ::class

Signed-off-by: andyo <[email protected]>

throw exception in default case

Signed-off-by: andyo <[email protected]>

Remove senseless breaks

Signed-off-by: andyo <[email protected]>

Add ApplicationInterface docblocks

Signed-off-by: andyo <[email protected]>

Add return types. Add JSON_THROW_ON_ERROR to jsonFlags

Signed-off-by: andyo <[email protected]>

Add phpunit result cache to .gitignore

Signed-off-by: andyo <[email protected]>

Add return types. Cleanup code.

Signed-off-by: andyo <[email protected]>

Variable alignment

Signed-off-by: andyo <[email protected]>

Revert setter changes

Signed-off-by: andyo <[email protected]>

Revert setter changes

Signed-off-by: andyo <[email protected]>

Add return types and minor code cleanup

Signed-off-by: andyo <[email protected]>

Add return types and minor code cleanup

Signed-off-by: andyo <[email protected]>

revert logic

Signed-off-by: andyo <[email protected]>

Implement FactoryInterface

Signed-off-by: andyo <[email protected]>

remove modulemanager

Signed-off-by: andyo <[email protected]>

revert formatting

Signed-off-by: andyo <[email protected]>

Add modulemanager to require-dev

Signed-off-by: andyo <[email protected]>
@froschdesign froschdesign linked an issue Dec 9, 2020 that may be closed by this pull request
6 tasks
@froschdesign froschdesign added the Enhancement New feature or request label Dec 9, 2020
$normalized = strtolower($name);
if (in_array($normalized, array_keys($this->normalizedProperties))) {
$normalized = \strtolower($name);
if (\array_key_exists($normalized, $this->normalizedProperties)) {
Copy link
Author

Choose a reason for hiding this comment

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

logic change

}

return 'Unknown Error';
return $this->recommendedReasonPhrases[$this->statusCode] ?? 'Unknown Error';
Copy link
Author

Choose a reason for hiding this comment

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

logic change

100
);

if ($sharedEvents) {
Copy link
Author

Choose a reason for hiding this comment

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

ensures shared event manager is setup before calling attach on it

foreach ($this->acceptFilters as $type) {
$match = $accept->match($type);
if ($match && $match->getTypeString() != '*/*') {
if ($match && $match->getTypeString() !== '*/*') {
Copy link
Author

Choose a reason for hiding this comment

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

logic change

* @return array
*/
public function toArray()
public function __set(string $name, $value)
Copy link
Author

Choose a reason for hiding this comment

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

__set and __isset satisfy magic requirements

protected function getDetail()
{
if ($this->detail instanceof Throwable || $this->detail instanceof Exception) {
if ($this->detail instanceof Throwable) {
Copy link
Author

Choose a reason for hiding this comment

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

since we support only 7.3 and above, remove redundant instanceof Exception conditions

@weierophinney
Copy link
Contributor

Closing in favor of #15

@weierophinney weierophinney removed a link to an issue Jun 7, 2021
6 tasks
@javabudd javabudd deleted the php8 branch June 7, 2021 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants