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 <javabudd@gmail.com>

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

Signed-off-by: andyo <javabudd@gmail.com>

Add return types

Signed-off-by: andyo <javabudd@gmail.com>

Use php 8 explicitly

Signed-off-by: andyo <javabudd@gmail.com>

Clean up confusing class logic and ambiguous code

Signed-off-by: andyo <javabudd@gmail.com>

Clean up doc blocks, add matching __set/__isset methods

Signed-off-by: andyo <javabudd@gmail.com>

call new method

Signed-off-by: andyo <javabudd@gmail.com>

call new method

Signed-off-by: andyo <javabudd@gmail.com>

Update assertion calls

Signed-off-by: andyo <javabudd@gmail.com>

update assert contains using string

Signed-off-by: andyo <javabudd@gmail.com>

Implement ConfigProviderInterface and minor code cleanup

Signed-off-by: andyo <javabudd@gmail.com>

Update string not contains assertions

Signed-off-by: andyo <javabudd@gmail.com>

Fix method name

Signed-off-by: andyo <javabudd@gmail.com>

require laminas/laminas-modulemanager

Signed-off-by: andyo <javabudd@gmail.com>

Implement BootstrapListenerInterface

Signed-off-by: andyo <javabudd@gmail.com>

Update onBootstrap signature to match interface

Signed-off-by: andyo <javabudd@gmail.com>

Add return types

Signed-off-by: andyo <javabudd@gmail.com>

Update ruleset path

Signed-off-by: andyo <javabudd@gmail.com>

Fix rule path

Signed-off-by: andyo <javabudd@gmail.com>

revert eventmanager constraint change

Signed-off-by: andyo <javabudd@gmail.com>

Migrate phpunit.xml.dist schema

Signed-off-by: andyo <javabudd@gmail.com>

use prophecy trait

Signed-off-by: andyo <javabudd@gmail.com>

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

Signed-off-by: andyo <javabudd@gmail.com>

Clean up tests

Signed-off-by: andyo <javabudd@gmail.com>

Revert set logic

Signed-off-by: andyo <javabudd@gmail.com>

use ::class

Signed-off-by: andyo <javabudd@gmail.com>

throw exception in default case

Signed-off-by: andyo <javabudd@gmail.com>

Remove senseless breaks

Signed-off-by: andyo <javabudd@gmail.com>

Add ApplicationInterface docblocks

Signed-off-by: andyo <javabudd@gmail.com>

Add return types. Add JSON_THROW_ON_ERROR to jsonFlags

Signed-off-by: andyo <javabudd@gmail.com>

Add phpunit result cache to .gitignore

Signed-off-by: andyo <javabudd@gmail.com>

Add return types. Cleanup code.

Signed-off-by: andyo <javabudd@gmail.com>

Variable alignment

Signed-off-by: andyo <javabudd@gmail.com>

Revert setter changes

Signed-off-by: andyo <javabudd@gmail.com>

Revert setter changes

Signed-off-by: andyo <javabudd@gmail.com>

Add return types and minor code cleanup

Signed-off-by: andyo <javabudd@gmail.com>

Add return types and minor code cleanup

Signed-off-by: andyo <javabudd@gmail.com>

revert logic

Signed-off-by: andyo <javabudd@gmail.com>

Implement FactoryInterface

Signed-off-by: andyo <javabudd@gmail.com>

remove modulemanager

Signed-off-by: andyo <javabudd@gmail.com>

revert formatting

Signed-off-by: andyo <javabudd@gmail.com>

Add modulemanager to require-dev

Signed-off-by: andyo <javabudd@gmail.com>
@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
Signed-off-by: andyo <javabudd@gmail.com>
Signed-off-by: andyo <javabudd@gmail.com>
Signed-off-by: andyo <javabudd@gmail.com>
Signed-off-by: andyo <javabudd@gmail.com>
$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