Feature - Reformatting for linting, format and analysis with Mago - #173
Closed
simon-mundy wants to merge 2 commits into
Closed
Feature - Reformatting for linting, format and analysis with Mago#173simon-mundy wants to merge 2 commits into
simon-mundy wants to merge 2 commits into
Conversation
- Add @api to the Feature interfaces, both AbstractFeature bases, EventFeatureEventsInterface, EventFeature, GlobalAdapterFeature, MetadataFeature, SequenceFeature and TableGateway\Feature\FeatureSet - Mark RowGatewayFeature, MasterSlaveFeature and TableGatewayEvent final - Type the EventFeatureEventsInterface constants and both APPLY_HALT - Add array shape docblocks to the FeatureSets, AbstractFeature::$sharedData, RowGatewayFeature::$constructorArguments and TableGatewayEvent::$params - Declare TableGatewayEvent as an EventInterface implementation - Correct AbstractTableGateway's @Property $table to the declared union and narrow TableGateway::__construct's $features docblock - Register the AbstractFeature gateway setters as class initializers - Drop the Feature entries from the analysis baselines
- Make EventFeature::$event non-nullable and assign it explicitly - Resolve GlobalAdapterFeature::getStaticAdapter through a coalesce chain and throw when no adapter is registered - Make MasterSlaveFeature::$masterSql nullable and throw when the gateway has no Sql instance or postInitialize has not run - Throw in SequenceFeature when a statement yields no result, when the sequence returns no usable value and when an insert exposes no arrays - Interpolate the SequenceFeature sequence statements and search insert columns strictly - Resolve the MetadataFeature table through getTable(), throw when it is not a named table, and take the primary key with reset() - Extract RowGatewayFeature::primaryKeyFromMetadata(), flatten the prototype branches and throw when the gateway has no named table - Replace the deprecated setArrayObjectPrototype() calls with setRowPrototype()
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Member
Author
|
Reopened as #174 from the fork (simon-mundy/phpdb). Branches for this campaign belong on the fork, not on this repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack created with GitHub Stacks CLI • Give Feedback 💬