From 33d31005d49b607688233b1632dd0450480789d9 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 6 Apr 2024 10:04:11 +0000 Subject: [PATCH 1/8] chore: implement strict types and PHPStan rules --- CHANGELOG.md | 1 + src/Connection/AbstractConnection.php | 2 ++ src/Connection/EntriesConnection.php | 2 ++ src/Connection/FormFieldsConnection.php | 2 ++ src/Connection/FormsConnection.php | 2 ++ src/CoreSchemaFilters.php | 2 ++ src/Data/Connection/EntriesConnectionResolver.php | 2 ++ src/Data/Connection/FormFieldsConnectionResolver.php | 2 ++ src/Data/Connection/FormsConnectionResolver.php | 2 ++ src/Data/EntryObjectMutation.php | 2 ++ src/Data/Factory.php | 2 ++ src/Data/FieldValueInput/AbstractFieldValueInput.php | 2 ++ src/Data/FieldValueInput/AddressValuesInput.php | 2 ++ src/Data/FieldValueInput/CaptchaValueInput.php | 2 ++ src/Data/FieldValueInput/CheckboxValuesInput.php | 2 ++ src/Data/FieldValueInput/ConsentValueInput.php | 2 ++ src/Data/FieldValueInput/EmailValuesInput.php | 2 ++ src/Data/FieldValueInput/FileUploadValuesInput.php | 4 ++++ src/Data/FieldValueInput/ImageValuesInput.php | 2 ++ src/Data/FieldValueInput/ListValuesInput.php | 2 ++ src/Data/FieldValueInput/NameValuesInput.php | 2 ++ src/Data/FieldValueInput/ProductValueInput.php | 2 ++ src/Data/FieldValueInput/ValueInput.php | 2 ++ src/Data/FieldValueInput/ValuesInput.php | 2 ++ src/Data/Loader/DraftEntriesLoader.php | 2 ++ src/Data/Loader/EntriesLoader.php | 2 ++ src/Data/Loader/FormsLoader.php | 2 ++ src/Extensions/Extensions.php | 2 ++ .../Data/FieldValueInput/ChainedSelectValuesInput.php | 2 ++ src/Extensions/GFChainedSelects/GFChainedSelects.php | 2 ++ .../Type/Enum/ChainedSelectFieldAlignmentEnum.php | 2 ++ .../GFChainedSelects/Type/Input/ChainedSelectFieldInput.php | 2 ++ .../FieldChoiceSetting/ChoiceWithChainedChoices.php | 2 ++ .../WPInterface/FieldInputSetting/InputWithChainedChoices.php | 2 ++ .../Type/WPInterface/FieldSetting/FieldWithChainedChoices.php | 2 ++ .../FieldSetting/FieldWithChainedSelectsAlignment.php | 2 ++ .../FieldSetting/FieldWithChainedSelectsHideInactive.php | 2 ++ .../Type/WPObject/FormField/FieldValue/ValueProperty.php | 2 ++ src/Extensions/GFQuiz/GFQuiz.php | 2 ++ src/Extensions/GFQuiz/Type/Enum/QuizFieldGradingTypeEnum.php | 2 ++ src/Extensions/GFQuiz/Type/Enum/QuizFieldTypeEnum.php | 2 ++ .../WPInterface/FieldChoiceSetting/ChoiceWithQuizChoices.php | 2 ++ .../Type/WPInterface/FieldSetting/FieldWithQuizChoices.php | 2 ++ .../Type/WPInterface/FieldSetting/FieldWithQuizQuestion.php | 2 ++ .../FieldSetting/FieldWithQuizRandomizeQuizChoices.php | 2 ++ .../FieldSetting/FieldWithQuizShowAnswerExplanation.php | 2 ++ .../GFQuiz/Type/WPObject/Entry/EntryQuizResults.php | 2 ++ src/Extensions/GFQuiz/Type/WPObject/Form/FormQuiz.php | 2 ++ .../GFQuiz/Type/WPObject/Form/FormQuizConfirmation.php | 2 ++ src/Extensions/GFQuiz/Type/WPObject/Form/FormQuizGrades.php | 2 ++ .../GFQuiz/Type/WPObject/QuizResults/QuizResults.php | 2 ++ .../Type/WPObject/QuizResults/QuizResultsChoiceCount.php | 2 ++ .../Type/WPObject/QuizResults/QuizResultsFieldCount.php | 2 ++ .../Type/WPObject/QuizResults/QuizResultsGradeCount.php | 2 ++ .../Type/WPObject/QuizResults/QuizResultsScoreCount.php | 2 ++ .../GFSignature/Data/FieldValueInput/SignatureValuesInput.php | 2 ++ src/Extensions/GFSignature/GFSignature.php | 2 ++ .../GFSignature/Type/Enum/SignatureFieldBorderStyleEnum.php | 2 ++ .../GFSignature/Type/Enum/SignatureFieldBorderWidthEnum.php | 2 ++ .../WPInterface/FieldSetting/FieldWithBackgroundColor.php | 2 ++ .../Type/WPInterface/FieldSetting/FieldWithBorderColor.php | 2 ++ .../Type/WPInterface/FieldSetting/FieldWithBorderStyle.php | 2 ++ .../Type/WPInterface/FieldSetting/FieldWithBorderWidth.php | 2 ++ .../Type/WPInterface/FieldSetting/FieldWithBoxWidth.php | 2 ++ .../Type/WPInterface/FieldSetting/FieldWithPenColor.php | 2 ++ .../Type/WPInterface/FieldSetting/FieldWithPenSize.php | 2 ++ src/Extensions/WPGatsby/GravityFormsMonitor.php | 2 ++ src/Extensions/WPGatsby/Settings.php | 2 ++ src/Extensions/WPGatsby/WPGatsby.php | 2 ++ .../WPJamstackDeployments/WPJamstackDeployments.php | 2 ++ src/GF.php | 2 ++ src/Interfaces/Enum.php | 2 ++ src/Interfaces/Field.php | 2 ++ src/Interfaces/Hookable.php | 2 ++ src/Interfaces/Mutation.php | 2 ++ src/Interfaces/Registrable.php | 2 ++ src/Interfaces/TypeWithConnections.php | 2 ++ src/Interfaces/TypeWithDescription.php | 2 ++ src/Interfaces/TypeWithFields.php | 2 ++ src/Interfaces/TypeWithInterfaces.php | 2 ++ src/Model/DraftEntry.php | 2 ++ src/Model/Form.php | 2 ++ src/Model/SubmittedEntry.php | 2 ++ src/Mutation/AbstractMutation.php | 2 ++ src/Mutation/DeleteDraftEntry.php | 2 ++ src/Mutation/DeleteEntry.php | 2 ++ src/Mutation/SubmitDraftEntry.php | 2 ++ src/Mutation/SubmitForm.php | 2 ++ src/Mutation/UpdateDraftEntry.php | 2 ++ src/Mutation/UpdateEntry.php | 2 ++ src/Registry/FieldChoiceRegistry.php | 2 ++ src/Registry/FieldInputRegistry.php | 2 ++ src/Registry/FormFieldRegistry.php | 2 ++ src/Registry/TypeRegistry.php | 2 ++ src/Type/AbstractType.php | 2 ++ src/Type/Enum/AbstractEnum.php | 2 ++ src/Type/Enum/AddressFieldCountryEnum.php | 2 ++ src/Type/Enum/AddressFieldProvinceEnum.php | 2 ++ src/Type/Enum/AddressFieldStateEnum.php | 2 ++ src/Type/Enum/AddressFieldTypeEnum.php | 2 ++ src/Type/Enum/AmPmEnum.php | 2 ++ src/Type/Enum/CaptchaFieldBadgePositionEnum.php | 2 ++ src/Type/Enum/CaptchaFieldThemeEnum.php | 2 ++ src/Type/Enum/CaptchaFieldTypeEnum.php | 2 ++ src/Type/Enum/ConditionalLogicActionTypeEnum.php | 2 ++ src/Type/Enum/ConditionalLogicLogicTypeEnum.php | 2 ++ src/Type/Enum/CurrencyEnum.php | 2 ++ src/Type/Enum/DateFieldFormatEnum.php | 2 ++ src/Type/Enum/DateFieldTypeEnum.php | 2 ++ src/Type/Enum/DraftEntryIdTypeEnum.php | 2 ++ src/Type/Enum/EntryIdTypeEnum.php | 2 ++ src/Type/Enum/EntryStatusEnum.php | 2 ++ src/Type/Enum/EntryTypeEnum.php | 2 ++ src/Type/Enum/FieldFiltersModeEnum.php | 2 ++ src/Type/Enum/FieldFiltersOperatorInputEnum.php | 2 ++ src/Type/Enum/FormButtonTypeEnum.php | 2 ++ src/Type/Enum/FormConfirmationTypeEnum.php | 2 ++ src/Type/Enum/FormCreditCardTypeEnum.php | 2 ++ src/Type/Enum/FormDescriptionPlacementEnum.php | 2 ++ src/Type/Enum/FormFieldCalendarIconTypeEnum.php | 2 ++ src/Type/Enum/FormFieldDescriptionPlacementEnum.php | 2 ++ src/Type/Enum/FormFieldLabelPlacementEnum.php | 2 ++ src/Type/Enum/FormFieldRequiredIndicatorEnum.php | 2 ++ src/Type/Enum/FormFieldSizeEnum.php | 2 ++ src/Type/Enum/FormFieldSubLabelPlacementEnum.php | 2 ++ src/Type/Enum/FormFieldTypeEnum.php | 2 ++ src/Type/Enum/FormFieldVisibilityEnum.php | 2 ++ src/Type/Enum/FormIdTypeEnum.php | 2 ++ src/Type/Enum/FormLabelPlacementEnum.php | 2 ++ src/Type/Enum/FormLimitEntriesPeriodEnum.php | 2 ++ src/Type/Enum/FormNotificationToTypeEnum.php | 2 ++ src/Type/Enum/FormPageProgressStyleEnum.php | 2 ++ src/Type/Enum/FormPageProgressTypeEnum.php | 2 ++ src/Type/Enum/FormRetentionPolicyEnum.php | 2 ++ src/Type/Enum/FormRuleOperatorEnum.php | 2 ++ src/Type/Enum/FormStatusEnum.php | 2 ++ src/Type/Enum/FormSubLabelPlacementEnum.php | 2 ++ src/Type/Enum/FormSubmitButtonLocationEnum.php | 2 ++ src/Type/Enum/FormSubmitButtonWidthEnum.php | 2 ++ src/Type/Enum/FormsConnectionOrderByEnum.php | 2 ++ src/Type/Enum/NumberFieldFormatEnum.php | 2 ++ src/Type/Enum/PasswordFieldMinStrengthEnum.php | 2 ++ src/Type/Enum/PhoneFieldFormatEnum.php | 2 ++ src/Type/Enum/PostFormatTypeEnum.php | 2 ++ src/Type/Enum/RecaptchaTypeEnum.php | 2 ++ src/Type/Enum/SubmissionConfirmationTypeEnum.php | 2 ++ src/Type/Enum/SubmittedEntryIdTypeEnum.php | 2 ++ src/Type/Enum/TimeFieldFormatEnum.php | 2 ++ src/Type/Input/AbstractInput.php | 2 ++ src/Type/Input/AddressFieldInput.php | 2 ++ src/Type/Input/CheckboxFieldInput.php | 2 ++ src/Type/Input/CreditCardFieldInput.php | 2 ++ src/Type/Input/EmailFieldInput.php | 2 ++ src/Type/Input/EntriesConnectionOrderbyInput.php | 2 ++ src/Type/Input/EntriesDateFiltersInput.php | 2 ++ src/Type/Input/EntriesFieldFiltersInput.php | 2 ++ src/Type/Input/FormFieldValuesInput.php | 2 ++ src/Type/Input/FormsConnectionOrderbyInput.php | 2 ++ src/Type/Input/ListFieldInput.php | 2 ++ src/Type/Input/NameFieldInput.php | 2 ++ src/Type/Input/PostImageFieldInput.php | 2 ++ src/Type/Input/ProductFieldInput.php | 2 ++ src/Type/Input/SubmitFormMetaInput.php | 2 ++ src/Type/Input/UpdateDraftEntryMetaInput.php | 2 ++ src/Type/Input/UpdateEntryMetaInput.php | 2 ++ src/Type/WPInterface/AbstractInterface.php | 2 ++ src/Type/WPInterface/Entry.php | 2 ++ src/Type/WPInterface/FieldChoice.php | 2 ++ .../FieldChoiceSetting/AbstractFieldChoiceSetting.php | 2 ++ src/Type/WPInterface/FieldChoiceSetting/ChoiceWithChoices.php | 2 ++ src/Type/WPInterface/FieldChoiceSetting/ChoiceWithColumns.php | 2 ++ src/Type/WPInterface/FieldChoiceSetting/ChoiceWithName.php | 2 ++ .../WPInterface/FieldChoiceSetting/ChoiceWithOtherChoice.php | 2 ++ src/Type/WPInterface/FieldInput.php | 2 ++ .../FieldInputSetting/AbstractFieldInputSetting.php | 2 ++ src/Type/WPInterface/FieldInputSetting/InputWithAddress.php | 2 ++ .../WPInterface/FieldInputSetting/InputWithDateFormat.php | 2 ++ .../FieldInputSetting/InputWithEmailConfirmation.php | 2 ++ src/Type/WPInterface/FieldInputSetting/InputWithName.php | 2 ++ src/Type/WPInterface/FieldInputSetting/InputWithPassword.php | 2 ++ .../FieldInputSetting/InputWithSelectAllChoices.php | 2 ++ .../WPInterface/FieldInputSetting/InputWithSingleProduct.php | 2 ++ .../WPInterface/FieldInputSetting/InputWithTimeFormat.php | 2 ++ src/Type/WPInterface/FieldSetting/AbstractFieldSetting.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithAddIconUrl.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithAddress.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithAdminLabel.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithAutocomplete.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithBasePrice.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithCalculation.php | 2 ++ .../WPInterface/FieldSetting/FieldWithCaptchaBackground.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithCaptchaBadge.php | 2 ++ .../WPInterface/FieldSetting/FieldWithCaptchaForeground.php | 2 ++ .../WPInterface/FieldSetting/FieldWithCaptchaLanguage.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithCaptchaSize.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithCaptchaTheme.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithCaptchaType.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithCheckboxLabel.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithChoices.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithColumns.php | 2 ++ .../WPInterface/FieldSetting/FieldWithConditionalLogic.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithContent.php | 2 ++ .../WPInterface/FieldSetting/FieldWithCopyValuesOption.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithCreditCard.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithCssClass.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithDateFormat.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithDateInputType.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithDefaultValue.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithDeleteIconUrl.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithDescription.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithDisableMargins.php | 2 ++ .../WPInterface/FieldSetting/FieldWithDisableQuantity.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithDuplicates.php | 2 ++ .../WPInterface/FieldSetting/FieldWithEmailConfirmation.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithEnhancedUI.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithErrorMessage.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithFileExtensions.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithFileSize.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithForceSSLField.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithInputMask.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithLabel.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithLabelPlacement.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithMaxLength.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithMaxRows.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithMultipleFiles.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithName.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithNextButton.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithNumberFormat.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithOtherChoice.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithPassword.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithPasswordField.php | 2 ++ .../WPInterface/FieldSetting/FieldWithPasswordStrength.php | 2 ++ .../WPInterface/FieldSetting/FieldWithPasswordVisibility.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithPhoneFormat.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithPlaceholder.php | 2 ++ .../FieldSetting/FieldWithPostCategoryCheckbox.php | 2 ++ .../FieldSetting/FieldWithPostCategoryInitialItem.php | 2 ++ .../WPInterface/FieldSetting/FieldWithPostCustomField.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithPostImage.php | 2 ++ .../FieldSetting/FieldWithPostImageFeaturedImage.php | 2 ++ .../WPInterface/FieldSetting/FieldWithPrepopulateField.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithPreviousButton.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithProductField.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithRange.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithRichTextEditor.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithRules.php | 2 ++ .../WPInterface/FieldSetting/FieldWithSelectAllChoices.php | 2 ++ .../WPInterface/FieldSetting/FieldWithSingleProductInputs.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithSize.php | 2 ++ .../WPInterface/FieldSetting/FieldWithSubLabelPlacement.php | 2 ++ src/Type/WPInterface/FieldSetting/FieldWithTimeFormat.php | 2 ++ src/Type/WPInterface/FieldValue/FieldValueWithChoice.php | 2 ++ src/Type/WPInterface/FieldValue/FieldValueWithInput.php | 2 ++ src/Type/WPInterface/FieldWithChoices.php | 2 ++ src/Type/WPInterface/FieldWithInputs.php | 2 ++ src/Type/WPInterface/FieldWithPersonalData.php | 2 ++ src/Type/WPInterface/FormField.php | 2 ++ src/Type/WPInterface/NodeWithForm.php | 2 ++ src/Type/WPObject/AbstractObject.php | 2 ++ src/Type/WPObject/Button/FormButton.php | 2 ++ src/Type/WPObject/Button/FormLastPageButton.php | 2 ++ src/Type/WPObject/ConditionalLogic/ConditionalLogic.php | 2 ++ src/Type/WPObject/ConditionalLogic/ConditionalLogicRule.php | 2 ++ src/Type/WPObject/Entry/DraftEntry.php | 2 ++ src/Type/WPObject/Entry/SubmittedEntry.php | 2 ++ src/Type/WPObject/FieldError.php | 2 ++ src/Type/WPObject/Form/Form.php | 2 ++ src/Type/WPObject/Form/FormConfirmation.php | 2 ++ src/Type/WPObject/Form/FormDataPolicies.php | 2 ++ src/Type/WPObject/Form/FormEntryDataPolicy.php | 2 ++ src/Type/WPObject/Form/FormEntryLimits.php | 2 ++ src/Type/WPObject/Form/FormLogin.php | 2 ++ src/Type/WPObject/Form/FormNotification.php | 2 ++ src/Type/WPObject/Form/FormNotificationRouting.php | 2 ++ src/Type/WPObject/Form/FormPagination.php | 2 ++ src/Type/WPObject/Form/FormPersonalData.php | 2 ++ src/Type/WPObject/Form/FormPostCreation.php | 2 ++ src/Type/WPObject/Form/FormSaveAndContinue.php | 2 ++ src/Type/WPObject/Form/FormSchedule.php | 2 ++ src/Type/WPObject/Form/FormScheduleDetails.php | 2 ++ src/Type/WPObject/Form/FormSubmitButton.php | 2 ++ src/Type/WPObject/FormField/FieldValue/FieldValues.php | 2 ++ .../FormField/FieldValue/ValueProperty/AddressFieldValue.php | 2 ++ .../FormField/FieldValue/ValueProperty/CheckboxFieldValue.php | 2 ++ .../FieldValue/ValueProperty/FileUploadFieldValue.php | 2 ++ .../FormField/FieldValue/ValueProperty/ImageFieldValue.php | 2 ++ .../FormField/FieldValue/ValueProperty/ListFieldValue.php | 2 ++ .../FormField/FieldValue/ValueProperty/NameFieldValue.php | 2 ++ .../FormField/FieldValue/ValueProperty/ProductFieldValue.php | 2 ++ .../FormField/FieldValue/ValueProperty/TimeFieldValue.php | 2 ++ src/Type/WPObject/FormField/FormFieldDataPolicy.php | 2 ++ src/Type/WPObject/FormField/FormFields.php | 2 ++ src/Type/WPObject/Order/OrderItem.php | 2 ++ src/Type/WPObject/Order/OrderItemOption.php | 2 ++ src/Type/WPObject/Order/OrderSummary.php | 2 ++ src/Type/WPObject/Settings/Logger.php | 2 ++ src/Type/WPObject/Settings/Settings.php | 2 ++ src/Type/WPObject/Settings/SettingsLogging.php | 2 ++ src/Type/WPObject/Settings/SettingsRecaptcha.php | 2 ++ src/Type/WPObject/SubmissionConfirmation.php | 2 ++ src/UpdateChecker.php | 2 ++ src/Utils/GFUtils.php | 2 ++ src/Utils/Utils.php | 2 ++ wp-graphql-gravity-forms.php | 2 ++ 304 files changed, 609 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77d48fc9..e2222c7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - feat: Add plugin dependency header. - chore: Update Composer deps and lint. - chore: Lock WPBrowser to <3.5.0 to prevent conflicts with Codeception. +- chore: Declare `strict_types` in all PHP files. - chore: Implement strict PHPStan rules and fix resulting issues. - ci: Update GitHub Actions to latest versions. - ci: Test plugin compatibility with WordPress 6.5.0. diff --git a/src/Connection/AbstractConnection.php b/src/Connection/AbstractConnection.php index d52b6a83..c9295129 100644 --- a/src/Connection/AbstractConnection.php +++ b/src/Connection/AbstractConnection.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Connection; use WPGraphQL\GF\Interfaces\Hookable; diff --git a/src/Connection/EntriesConnection.php b/src/Connection/EntriesConnection.php index 8bcfc4af..09911330 100644 --- a/src/Connection/EntriesConnection.php +++ b/src/Connection/EntriesConnection.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Connection; use GraphQL\Error\UserError; diff --git a/src/Connection/FormFieldsConnection.php b/src/Connection/FormFieldsConnection.php index aa2129e6..d0a5bed5 100644 --- a/src/Connection/FormFieldsConnection.php +++ b/src/Connection/FormFieldsConnection.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Connection; use WPGraphQL\GF\Type\Enum\FormFieldTypeEnum; diff --git a/src/Connection/FormsConnection.php b/src/Connection/FormsConnection.php index d15bef3d..34406785 100644 --- a/src/Connection/FormsConnection.php +++ b/src/Connection/FormsConnection.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Connection; use GraphQL\Type\Definition\ResolveInfo; diff --git a/src/CoreSchemaFilters.php b/src/CoreSchemaFilters.php index 16f7e84e..05c9d22a 100644 --- a/src/CoreSchemaFilters.php +++ b/src/CoreSchemaFilters.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF; use WPGraphQL\GF\Data\Factory; diff --git a/src/Data/Connection/EntriesConnectionResolver.php b/src/Data/Connection/EntriesConnectionResolver.php index 82741c57..b1ab881a 100644 --- a/src/Data/Connection/EntriesConnectionResolver.php +++ b/src/Data/Connection/EntriesConnectionResolver.php @@ -8,6 +8,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\Connection; use GFAPI; diff --git a/src/Data/Connection/FormFieldsConnectionResolver.php b/src/Data/Connection/FormFieldsConnectionResolver.php index fb2f2b79..b0c8104b 100644 --- a/src/Data/Connection/FormFieldsConnectionResolver.php +++ b/src/Data/Connection/FormFieldsConnectionResolver.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\Connection; use GraphQL\Type\Definition\ResolveInfo; diff --git a/src/Data/Connection/FormsConnectionResolver.php b/src/Data/Connection/FormsConnectionResolver.php index 668e631b..a2f4ce6a 100644 --- a/src/Data/Connection/FormsConnectionResolver.php +++ b/src/Data/Connection/FormsConnectionResolver.php @@ -8,6 +8,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\Connection; use GFAPI; diff --git a/src/Data/EntryObjectMutation.php b/src/Data/EntryObjectMutation.php index 819764b5..728d7888 100644 --- a/src/Data/EntryObjectMutation.php +++ b/src/Data/EntryObjectMutation.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data; use Exception; diff --git a/src/Data/Factory.php b/src/Data/Factory.php index fc9c8507..cc390839 100644 --- a/src/Data/Factory.php +++ b/src/Data/Factory.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data; use GraphQL\Deferred; diff --git a/src/Data/FieldValueInput/AbstractFieldValueInput.php b/src/Data/FieldValueInput/AbstractFieldValueInput.php index 149a0bca..b35e2e57 100644 --- a/src/Data/FieldValueInput/AbstractFieldValueInput.php +++ b/src/Data/FieldValueInput/AbstractFieldValueInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; use GF_Field; diff --git a/src/Data/FieldValueInput/AddressValuesInput.php b/src/Data/FieldValueInput/AddressValuesInput.php index 8a315f78..ea708335 100644 --- a/src/Data/FieldValueInput/AddressValuesInput.php +++ b/src/Data/FieldValueInput/AddressValuesInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; /** diff --git a/src/Data/FieldValueInput/CaptchaValueInput.php b/src/Data/FieldValueInput/CaptchaValueInput.php index d71efd3c..725455b0 100644 --- a/src/Data/FieldValueInput/CaptchaValueInput.php +++ b/src/Data/FieldValueInput/CaptchaValueInput.php @@ -6,6 +6,8 @@ * @since 0.11.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; use GF_Field; diff --git a/src/Data/FieldValueInput/CheckboxValuesInput.php b/src/Data/FieldValueInput/CheckboxValuesInput.php index a3ebb6d5..102b5ab8 100644 --- a/src/Data/FieldValueInput/CheckboxValuesInput.php +++ b/src/Data/FieldValueInput/CheckboxValuesInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; use GFCommon; diff --git a/src/Data/FieldValueInput/ConsentValueInput.php b/src/Data/FieldValueInput/ConsentValueInput.php index dfec108c..333083c9 100644 --- a/src/Data/FieldValueInput/ConsentValueInput.php +++ b/src/Data/FieldValueInput/ConsentValueInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; use GFFormsModel; diff --git a/src/Data/FieldValueInput/EmailValuesInput.php b/src/Data/FieldValueInput/EmailValuesInput.php index 48d4a048..b952e998 100644 --- a/src/Data/FieldValueInput/EmailValuesInput.php +++ b/src/Data/FieldValueInput/EmailValuesInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; /** diff --git a/src/Data/FieldValueInput/FileUploadValuesInput.php b/src/Data/FieldValueInput/FileUploadValuesInput.php index bbdb6cff..87189187 100644 --- a/src/Data/FieldValueInput/FileUploadValuesInput.php +++ b/src/Data/FieldValueInput/FileUploadValuesInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; use GraphQL\Error\UserError; @@ -35,6 +37,8 @@ protected function get_field_name(): string { * @return string|mixed * * @throws \GraphQL\Error\UserError + * + * @return string|mixed */ protected function prepare_value() { // Draft entries don't upload files. diff --git a/src/Data/FieldValueInput/ImageValuesInput.php b/src/Data/FieldValueInput/ImageValuesInput.php index 2a50f581..dc3ae304 100644 --- a/src/Data/FieldValueInput/ImageValuesInput.php +++ b/src/Data/FieldValueInput/ImageValuesInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; use GF_Field; diff --git a/src/Data/FieldValueInput/ListValuesInput.php b/src/Data/FieldValueInput/ListValuesInput.php index b375cef8..e6f9f71e 100644 --- a/src/Data/FieldValueInput/ListValuesInput.php +++ b/src/Data/FieldValueInput/ListValuesInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; use GraphQL\Error\UserError; diff --git a/src/Data/FieldValueInput/NameValuesInput.php b/src/Data/FieldValueInput/NameValuesInput.php index 5dfcb30b..f591535f 100644 --- a/src/Data/FieldValueInput/NameValuesInput.php +++ b/src/Data/FieldValueInput/NameValuesInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; /** diff --git a/src/Data/FieldValueInput/ProductValueInput.php b/src/Data/FieldValueInput/ProductValueInput.php index e673b7e3..cd0887ca 100644 --- a/src/Data/FieldValueInput/ProductValueInput.php +++ b/src/Data/FieldValueInput/ProductValueInput.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; use GFCommon; diff --git a/src/Data/FieldValueInput/ValueInput.php b/src/Data/FieldValueInput/ValueInput.php index cd0d9a91..89c49659 100644 --- a/src/Data/FieldValueInput/ValueInput.php +++ b/src/Data/FieldValueInput/ValueInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; use GFCommon; diff --git a/src/Data/FieldValueInput/ValuesInput.php b/src/Data/FieldValueInput/ValuesInput.php index ad042bbc..1651b9b2 100644 --- a/src/Data/FieldValueInput/ValuesInput.php +++ b/src/Data/FieldValueInput/ValuesInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\FieldValueInput; /** diff --git a/src/Data/Loader/DraftEntriesLoader.php b/src/Data/Loader/DraftEntriesLoader.php index bedd7c4f..17fed2cd 100644 --- a/src/Data/Loader/DraftEntriesLoader.php +++ b/src/Data/Loader/DraftEntriesLoader.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\Loader; use GFFormsModel; diff --git a/src/Data/Loader/EntriesLoader.php b/src/Data/Loader/EntriesLoader.php index 7f353036..a3e82110 100644 --- a/src/Data/Loader/EntriesLoader.php +++ b/src/Data/Loader/EntriesLoader.php @@ -8,6 +8,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\Loader; use GFAPI; diff --git a/src/Data/Loader/FormsLoader.php b/src/Data/Loader/FormsLoader.php index 6c282b1c..b4c85ead 100644 --- a/src/Data/Loader/FormsLoader.php +++ b/src/Data/Loader/FormsLoader.php @@ -8,6 +8,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Data\Loader; use GFAPI; diff --git a/src/Extensions/Extensions.php b/src/Extensions/Extensions.php index 669c02eb..11acd6e9 100644 --- a/src/Extensions/Extensions.php +++ b/src/Extensions/Extensions.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions; use WPGraphQL\GF\Extensions\GFChainedSelects\GFChainedSelects; diff --git a/src/Extensions/GFChainedSelects/Data/FieldValueInput/ChainedSelectValuesInput.php b/src/Extensions/GFChainedSelects/Data/FieldValueInput/ChainedSelectValuesInput.php index 3d7edf4d..8c4a84c6 100644 --- a/src/Extensions/GFChainedSelects/Data/FieldValueInput/ChainedSelectValuesInput.php +++ b/src/Extensions/GFChainedSelects/Data/FieldValueInput/ChainedSelectValuesInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFChainedSelects\Data\FieldValueInput; use WPGraphQL\GF\Data\FieldValueInput\CheckboxValuesInput; diff --git a/src/Extensions/GFChainedSelects/GFChainedSelects.php b/src/Extensions/GFChainedSelects/GFChainedSelects.php index c0bdc20b..d8daa8ff 100644 --- a/src/Extensions/GFChainedSelects/GFChainedSelects.php +++ b/src/Extensions/GFChainedSelects/GFChainedSelects.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFChainedSelects; use GF_Field; diff --git a/src/Extensions/GFChainedSelects/Type/Enum/ChainedSelectFieldAlignmentEnum.php b/src/Extensions/GFChainedSelects/Type/Enum/ChainedSelectFieldAlignmentEnum.php index 2558818f..4902fd76 100644 --- a/src/Extensions/GFChainedSelects/Type/Enum/ChainedSelectFieldAlignmentEnum.php +++ b/src/Extensions/GFChainedSelects/Type/Enum/ChainedSelectFieldAlignmentEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFChainedSelects\Type\Enum; use WPGraphQL\GF\Type\Enum\AbstractEnum; diff --git a/src/Extensions/GFChainedSelects/Type/Input/ChainedSelectFieldInput.php b/src/Extensions/GFChainedSelects/Type/Input/ChainedSelectFieldInput.php index e61bb488..e3bc2d0d 100644 --- a/src/Extensions/GFChainedSelects/Type/Input/ChainedSelectFieldInput.php +++ b/src/Extensions/GFChainedSelects/Type/Input/ChainedSelectFieldInput.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFChainedSelects\Type\Input; use WPGraphQL\GF\Type\Input\AbstractInput; diff --git a/src/Extensions/GFChainedSelects/Type/WPInterface/FieldChoiceSetting/ChoiceWithChainedChoices.php b/src/Extensions/GFChainedSelects/Type/WPInterface/FieldChoiceSetting/ChoiceWithChainedChoices.php index 8e15b091..231202df 100644 --- a/src/Extensions/GFChainedSelects/Type/WPInterface/FieldChoiceSetting/ChoiceWithChainedChoices.php +++ b/src/Extensions/GFChainedSelects/Type/WPInterface/FieldChoiceSetting/ChoiceWithChainedChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFChainedSelects\Type\WPInterface\FieldChoiceSetting; use GF_Field; diff --git a/src/Extensions/GFChainedSelects/Type/WPInterface/FieldInputSetting/InputWithChainedChoices.php b/src/Extensions/GFChainedSelects/Type/WPInterface/FieldInputSetting/InputWithChainedChoices.php index be585b43..78d5776d 100644 --- a/src/Extensions/GFChainedSelects/Type/WPInterface/FieldInputSetting/InputWithChainedChoices.php +++ b/src/Extensions/GFChainedSelects/Type/WPInterface/FieldInputSetting/InputWithChainedChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFChainedSelects\Type\WPInterface\FieldInputSetting; use WPGraphQL\GF\Type\WPInterface\FieldInputSetting\AbstractFieldInputSetting; diff --git a/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedChoices.php b/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedChoices.php index 3073060c..efb03b07 100644 --- a/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedChoices.php +++ b/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFChainedSelects\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedSelectsAlignment.php b/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedSelectsAlignment.php index 99a7112f..24c2353e 100644 --- a/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedSelectsAlignment.php +++ b/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedSelectsAlignment.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFChainedSelects\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Extensions\GFChainedSelects\Type\Enum\ChainedSelectFieldAlignmentEnum; diff --git a/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedSelectsHideInactive.php b/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedSelectsHideInactive.php index 73f4d2fd..e4e6fb60 100644 --- a/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedSelectsHideInactive.php +++ b/src/Extensions/GFChainedSelects/Type/WPInterface/FieldSetting/FieldWithChainedSelectsHideInactive.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFChainedSelects\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\FieldSetting\AbstractFieldSetting; diff --git a/src/Extensions/GFChainedSelects/Type/WPObject/FormField/FieldValue/ValueProperty.php b/src/Extensions/GFChainedSelects/Type/WPObject/FormField/FieldValue/ValueProperty.php index 35dad70e..01c155b3 100644 --- a/src/Extensions/GFChainedSelects/Type/WPObject/FormField/FieldValue/ValueProperty.php +++ b/src/Extensions/GFChainedSelects/Type/WPObject/FormField/FieldValue/ValueProperty.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFChainedSelects\Type\WPObject\FormField\FieldValue; use WPGraphQL\AppContext; diff --git a/src/Extensions/GFQuiz/GFQuiz.php b/src/Extensions/GFQuiz/GFQuiz.php index f413bd8d..8cb67f43 100644 --- a/src/Extensions/GFQuiz/GFQuiz.php +++ b/src/Extensions/GFQuiz/GFQuiz.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz; use WPGraphQL\GF\Extensions\GFQuiz\Type\Enum; diff --git a/src/Extensions/GFQuiz/Type/Enum/QuizFieldGradingTypeEnum.php b/src/Extensions/GFQuiz/Type/Enum/QuizFieldGradingTypeEnum.php index f9392d53..066e5c7d 100644 --- a/src/Extensions/GFQuiz/Type/Enum/QuizFieldGradingTypeEnum.php +++ b/src/Extensions/GFQuiz/Type/Enum/QuizFieldGradingTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.9.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\Enum; use WPGraphQL\GF\Type\Enum\AbstractEnum; diff --git a/src/Extensions/GFQuiz/Type/Enum/QuizFieldTypeEnum.php b/src/Extensions/GFQuiz/Type/Enum/QuizFieldTypeEnum.php index 6890e57a..db39e836 100644 --- a/src/Extensions/GFQuiz/Type/Enum/QuizFieldTypeEnum.php +++ b/src/Extensions/GFQuiz/Type/Enum/QuizFieldTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.9.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\Enum; use WPGraphQL\GF\Type\Enum\AbstractEnum; diff --git a/src/Extensions/GFQuiz/Type/WPInterface/FieldChoiceSetting/ChoiceWithQuizChoices.php b/src/Extensions/GFQuiz/Type/WPInterface/FieldChoiceSetting/ChoiceWithQuizChoices.php index 84f1050a..d312715b 100644 --- a/src/Extensions/GFQuiz/Type/WPInterface/FieldChoiceSetting/ChoiceWithQuizChoices.php +++ b/src/Extensions/GFQuiz/Type/WPInterface/FieldChoiceSetting/ChoiceWithQuizChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPInterface\FieldChoiceSetting; use WPGraphQL\AppContext; diff --git a/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizChoices.php b/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizChoices.php index 7fd9a75a..5865c2ec 100644 --- a/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizChoices.php +++ b/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\FieldSetting\AbstractFieldSetting; diff --git a/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizQuestion.php b/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizQuestion.php index 3cfa27b2..8e83296d 100644 --- a/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizQuestion.php +++ b/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizQuestion.php @@ -8,6 +8,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\FieldSetting\FieldWithLabel; diff --git a/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizRandomizeQuizChoices.php b/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizRandomizeQuizChoices.php index a6d6c681..e123be23 100644 --- a/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizRandomizeQuizChoices.php +++ b/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizRandomizeQuizChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\FieldSetting\AbstractFieldSetting; diff --git a/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizShowAnswerExplanation.php b/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizShowAnswerExplanation.php index 1f6eb81d..02125bf5 100644 --- a/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizShowAnswerExplanation.php +++ b/src/Extensions/GFQuiz/Type/WPInterface/FieldSetting/FieldWithQuizShowAnswerExplanation.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\FieldSetting\AbstractFieldSetting; diff --git a/src/Extensions/GFQuiz/Type/WPObject/Entry/EntryQuizResults.php b/src/Extensions/GFQuiz/Type/WPObject/Entry/EntryQuizResults.php index 72130c24..d9637295 100644 --- a/src/Extensions/GFQuiz/Type/WPObject/Entry/EntryQuizResults.php +++ b/src/Extensions/GFQuiz/Type/WPObject/Entry/EntryQuizResults.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPObject\Entry; use WPGraphQL\GF\Interfaces\Field; diff --git a/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuiz.php b/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuiz.php index e1497b1c..61f170bf 100644 --- a/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuiz.php +++ b/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuiz.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPObject\Form; use WPGraphQL\AppContext; diff --git a/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuizConfirmation.php b/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuizConfirmation.php index 53511a3c..76ad4a6d 100644 --- a/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuizConfirmation.php +++ b/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuizConfirmation.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPObject\Form; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuizGrades.php b/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuizGrades.php index 0d7c53c2..e2c97d20 100644 --- a/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuizGrades.php +++ b/src/Extensions/GFQuiz/Type/WPObject/Form/FormQuizGrades.php @@ -8,6 +8,8 @@ * @since 0.9.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPObject\Form; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResults.php b/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResults.php index ec0a609d..8a2525ed 100644 --- a/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResults.php +++ b/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResults.php @@ -6,6 +6,8 @@ * @since 0.10.4 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPObject\QuizResults; use GFAPI; diff --git a/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsChoiceCount.php b/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsChoiceCount.php index 75b9aea4..b4d7cf10 100644 --- a/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsChoiceCount.php +++ b/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsChoiceCount.php @@ -6,6 +6,8 @@ * @since 0.10.4 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPObject\QuizResults; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsFieldCount.php b/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsFieldCount.php index cb1b7a83..b70989a9 100644 --- a/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsFieldCount.php +++ b/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsFieldCount.php @@ -6,6 +6,8 @@ * @since 0.10.4 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPObject\QuizResults; use WPGraphQL\GF\Interfaces\TypeWithConnections; diff --git a/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsGradeCount.php b/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsGradeCount.php index 9bb05b61..aa48ad6e 100644 --- a/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsGradeCount.php +++ b/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsGradeCount.php @@ -6,6 +6,8 @@ * @since 0.10.4 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPObject\QuizResults; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsScoreCount.php b/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsScoreCount.php index fbd523c0..00d53845 100644 --- a/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsScoreCount.php +++ b/src/Extensions/GFQuiz/Type/WPObject/QuizResults/QuizResultsScoreCount.php @@ -6,6 +6,8 @@ * @since 0.10.4 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFQuiz\Type\WPObject\QuizResults; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Extensions/GFSignature/Data/FieldValueInput/SignatureValuesInput.php b/src/Extensions/GFSignature/Data/FieldValueInput/SignatureValuesInput.php index ee4b7d36..6752f19a 100644 --- a/src/Extensions/GFSignature/Data/FieldValueInput/SignatureValuesInput.php +++ b/src/Extensions/GFSignature/Data/FieldValueInput/SignatureValuesInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature\Data\FieldValueInput; use GFCommon; diff --git a/src/Extensions/GFSignature/GFSignature.php b/src/Extensions/GFSignature/GFSignature.php index f251456b..465f6ad9 100644 --- a/src/Extensions/GFSignature/GFSignature.php +++ b/src/Extensions/GFSignature/GFSignature.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature; use GF_Field; diff --git a/src/Extensions/GFSignature/Type/Enum/SignatureFieldBorderStyleEnum.php b/src/Extensions/GFSignature/Type/Enum/SignatureFieldBorderStyleEnum.php index ad55b4d7..1f0bbd19 100644 --- a/src/Extensions/GFSignature/Type/Enum/SignatureFieldBorderStyleEnum.php +++ b/src/Extensions/GFSignature/Type/Enum/SignatureFieldBorderStyleEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature\Type\Enum; use WPGraphQL\GF\Type\Enum\AbstractEnum; diff --git a/src/Extensions/GFSignature/Type/Enum/SignatureFieldBorderWidthEnum.php b/src/Extensions/GFSignature/Type/Enum/SignatureFieldBorderWidthEnum.php index 9abdf03d..3d250033 100644 --- a/src/Extensions/GFSignature/Type/Enum/SignatureFieldBorderWidthEnum.php +++ b/src/Extensions/GFSignature/Type/Enum/SignatureFieldBorderWidthEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature\Type\Enum; use WPGraphQL\GF\Type\Enum\AbstractEnum; diff --git a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBackgroundColor.php b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBackgroundColor.php index 8ec3ab3a..ea7d9af4 100644 --- a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBackgroundColor.php +++ b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBackgroundColor.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\FieldSetting\AbstractFieldSetting; diff --git a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderColor.php b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderColor.php index 76e23bf6..97175c80 100644 --- a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderColor.php +++ b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderColor.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\FieldSetting\AbstractFieldSetting; diff --git a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderStyle.php b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderStyle.php index 20098c98..26a5d0b5 100644 --- a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderStyle.php +++ b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderStyle.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Extensions\GFSignature\Type\Enum\SignatureFieldBorderStyleEnum; diff --git a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderWidth.php b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderWidth.php index 21a78c1a..74bd8afa 100644 --- a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderWidth.php +++ b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBorderWidth.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Extensions\GFSignature\Type\Enum\SignatureFieldBorderWidthEnum; diff --git a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBoxWidth.php b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBoxWidth.php index c2154ece..3d1f8b26 100644 --- a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBoxWidth.php +++ b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithBoxWidth.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\FieldSetting\AbstractFieldSetting; diff --git a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithPenColor.php b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithPenColor.php index 84b63cdd..c6b34da9 100644 --- a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithPenColor.php +++ b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithPenColor.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\FieldSetting\AbstractFieldSetting; diff --git a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithPenSize.php b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithPenSize.php index 7915c1b3..49f36430 100644 --- a/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithPenSize.php +++ b/src/Extensions/GFSignature/Type/WPInterface/FieldSetting/FieldWithPenSize.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\GFSignature\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\FieldSetting\AbstractFieldSetting; diff --git a/src/Extensions/WPGatsby/GravityFormsMonitor.php b/src/Extensions/WPGatsby/GravityFormsMonitor.php index 40b178d9..1a8a7cec 100644 --- a/src/Extensions/WPGatsby/GravityFormsMonitor.php +++ b/src/Extensions/WPGatsby/GravityFormsMonitor.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\WPGatsby; use GraphQLRelay\Relay; diff --git a/src/Extensions/WPGatsby/Settings.php b/src/Extensions/WPGatsby/Settings.php index f82b5420..5f1d18a5 100644 --- a/src/Extensions/WPGatsby/Settings.php +++ b/src/Extensions/WPGatsby/Settings.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\WPGatsby; use WPGraphQL_Settings_API; diff --git a/src/Extensions/WPGatsby/WPGatsby.php b/src/Extensions/WPGatsby/WPGatsby.php index 285338f6..2434ed0c 100644 --- a/src/Extensions/WPGatsby/WPGatsby.php +++ b/src/Extensions/WPGatsby/WPGatsby.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\WPGatsby; use WPGraphQL\GF\Interfaces\Hookable; diff --git a/src/Extensions/WPJamstackDeployments/WPJamstackDeployments.php b/src/Extensions/WPJamstackDeployments/WPJamstackDeployments.php index 1997fbbd..80900bc7 100644 --- a/src/Extensions/WPJamstackDeployments/WPJamstackDeployments.php +++ b/src/Extensions/WPJamstackDeployments/WPJamstackDeployments.php @@ -6,6 +6,8 @@ * @since 0.10.3 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Extensions\WPJamstackDeployments; use WPGraphQL\GF\Interfaces\Hookable; diff --git a/src/GF.php b/src/GF.php index ec5ca3f0..bc0a2459 100644 --- a/src/GF.php +++ b/src/GF.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF; use WPGraphQL\GF\Extensions\Extensions; diff --git a/src/Interfaces/Enum.php b/src/Interfaces/Enum.php index 68fa973a..1dd22bef 100644 --- a/src/Interfaces/Enum.php +++ b/src/Interfaces/Enum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Interfaces; /** diff --git a/src/Interfaces/Field.php b/src/Interfaces/Field.php index de8827f6..2526c774 100644 --- a/src/Interfaces/Field.php +++ b/src/Interfaces/Field.php @@ -6,6 +6,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Interfaces; /** diff --git a/src/Interfaces/Hookable.php b/src/Interfaces/Hookable.php index 85964146..53d9990c 100644 --- a/src/Interfaces/Hookable.php +++ b/src/Interfaces/Hookable.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Interfaces; /** diff --git a/src/Interfaces/Mutation.php b/src/Interfaces/Mutation.php index 51ad53e1..994535ae 100644 --- a/src/Interfaces/Mutation.php +++ b/src/Interfaces/Mutation.php @@ -6,6 +6,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Interfaces; /** diff --git a/src/Interfaces/Registrable.php b/src/Interfaces/Registrable.php index b823e9c5..f7452cc0 100644 --- a/src/Interfaces/Registrable.php +++ b/src/Interfaces/Registrable.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Interfaces; /** diff --git a/src/Interfaces/TypeWithConnections.php b/src/Interfaces/TypeWithConnections.php index b8240564..83332dbc 100644 --- a/src/Interfaces/TypeWithConnections.php +++ b/src/Interfaces/TypeWithConnections.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Interfaces; /** diff --git a/src/Interfaces/TypeWithDescription.php b/src/Interfaces/TypeWithDescription.php index 34d571bd..891b8f9c 100644 --- a/src/Interfaces/TypeWithDescription.php +++ b/src/Interfaces/TypeWithDescription.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Interfaces; /** diff --git a/src/Interfaces/TypeWithFields.php b/src/Interfaces/TypeWithFields.php index 18f7238d..b96fc15e 100644 --- a/src/Interfaces/TypeWithFields.php +++ b/src/Interfaces/TypeWithFields.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Interfaces; /** diff --git a/src/Interfaces/TypeWithInterfaces.php b/src/Interfaces/TypeWithInterfaces.php index 814d2e21..474ef69c 100644 --- a/src/Interfaces/TypeWithInterfaces.php +++ b/src/Interfaces/TypeWithInterfaces.php @@ -6,6 +6,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Interfaces; /** diff --git a/src/Model/DraftEntry.php b/src/Model/DraftEntry.php index 129be98f..2d45c2b3 100644 --- a/src/Model/DraftEntry.php +++ b/src/Model/DraftEntry.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Model; use GraphQLRelay\Relay; diff --git a/src/Model/Form.php b/src/Model/Form.php index 0c02973e..e43db48a 100644 --- a/src/Model/Form.php +++ b/src/Model/Form.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Model; use GraphQLRelay\Relay; diff --git a/src/Model/SubmittedEntry.php b/src/Model/SubmittedEntry.php index 15dbb400..913a3bf7 100644 --- a/src/Model/SubmittedEntry.php +++ b/src/Model/SubmittedEntry.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Model; use GraphQLRelay\Relay; diff --git a/src/Mutation/AbstractMutation.php b/src/Mutation/AbstractMutation.php index 51d752a9..872f5744 100644 --- a/src/Mutation/AbstractMutation.php +++ b/src/Mutation/AbstractMutation.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Mutation; use GraphQL\Error\UserError; diff --git a/src/Mutation/DeleteDraftEntry.php b/src/Mutation/DeleteDraftEntry.php index 7dff53ca..0817992a 100644 --- a/src/Mutation/DeleteDraftEntry.php +++ b/src/Mutation/DeleteDraftEntry.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Mutation; use GFCommon; diff --git a/src/Mutation/DeleteEntry.php b/src/Mutation/DeleteEntry.php index cda4ac63..268d0250 100644 --- a/src/Mutation/DeleteEntry.php +++ b/src/Mutation/DeleteEntry.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Mutation; use GFAPI; diff --git a/src/Mutation/SubmitDraftEntry.php b/src/Mutation/SubmitDraftEntry.php index b67ef32c..18ebdd2a 100644 --- a/src/Mutation/SubmitDraftEntry.php +++ b/src/Mutation/SubmitDraftEntry.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Mutation; use GFFormsModel; diff --git a/src/Mutation/SubmitForm.php b/src/Mutation/SubmitForm.php index 2af5383b..41165be4 100644 --- a/src/Mutation/SubmitForm.php +++ b/src/Mutation/SubmitForm.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Mutation; use GFAPI; diff --git a/src/Mutation/UpdateDraftEntry.php b/src/Mutation/UpdateDraftEntry.php index 43059c74..34e1aed4 100644 --- a/src/Mutation/UpdateDraftEntry.php +++ b/src/Mutation/UpdateDraftEntry.php @@ -8,6 +8,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Mutation; use GraphQL\Error\UserError; diff --git a/src/Mutation/UpdateEntry.php b/src/Mutation/UpdateEntry.php index efb3e958..110c3bf7 100644 --- a/src/Mutation/UpdateEntry.php +++ b/src/Mutation/UpdateEntry.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Mutation; use GFCommon; diff --git a/src/Registry/FieldChoiceRegistry.php b/src/Registry/FieldChoiceRegistry.php index 0c7f0999..5642f33e 100644 --- a/src/Registry/FieldChoiceRegistry.php +++ b/src/Registry/FieldChoiceRegistry.php @@ -9,6 +9,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Registry; use GF_Field; diff --git a/src/Registry/FieldInputRegistry.php b/src/Registry/FieldInputRegistry.php index 38958576..9b022c61 100644 --- a/src/Registry/FieldInputRegistry.php +++ b/src/Registry/FieldInputRegistry.php @@ -9,6 +9,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Registry; use GF_Field; diff --git a/src/Registry/FormFieldRegistry.php b/src/Registry/FormFieldRegistry.php index 68e8628c..3b67761d 100644 --- a/src/Registry/FormFieldRegistry.php +++ b/src/Registry/FormFieldRegistry.php @@ -9,6 +9,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Registry; use GF_Field; diff --git a/src/Registry/TypeRegistry.php b/src/Registry/TypeRegistry.php index 5a163639..96992a8e 100644 --- a/src/Registry/TypeRegistry.php +++ b/src/Registry/TypeRegistry.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Registry; use Exception; diff --git a/src/Type/AbstractType.php b/src/Type/AbstractType.php index 9b4d5800..b262c342 100644 --- a/src/Type/AbstractType.php +++ b/src/Type/AbstractType.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type; use WPGraphQL\GF\Interfaces\Hookable; diff --git a/src/Type/Enum/AbstractEnum.php b/src/Type/Enum/AbstractEnum.php index 28fb3fb5..cca308af 100644 --- a/src/Type/Enum/AbstractEnum.php +++ b/src/Type/Enum/AbstractEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; use WPGraphQL\GF\Interfaces\Enum; diff --git a/src/Type/Enum/AddressFieldCountryEnum.php b/src/Type/Enum/AddressFieldCountryEnum.php index e183062b..afbfb5ab 100644 --- a/src/Type/Enum/AddressFieldCountryEnum.php +++ b/src/Type/Enum/AddressFieldCountryEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; use GF_Fields; diff --git a/src/Type/Enum/AddressFieldProvinceEnum.php b/src/Type/Enum/AddressFieldProvinceEnum.php index f69a4ce9..01f22b9f 100644 --- a/src/Type/Enum/AddressFieldProvinceEnum.php +++ b/src/Type/Enum/AddressFieldProvinceEnum.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; use GF_Fields; diff --git a/src/Type/Enum/AddressFieldStateEnum.php b/src/Type/Enum/AddressFieldStateEnum.php index 4e7efadd..15e7b7e2 100644 --- a/src/Type/Enum/AddressFieldStateEnum.php +++ b/src/Type/Enum/AddressFieldStateEnum.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; use GF_Fields; diff --git a/src/Type/Enum/AddressFieldTypeEnum.php b/src/Type/Enum/AddressFieldTypeEnum.php index decd0ff6..b592df6e 100644 --- a/src/Type/Enum/AddressFieldTypeEnum.php +++ b/src/Type/Enum/AddressFieldTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/AmPmEnum.php b/src/Type/Enum/AmPmEnum.php index 9ae5b869..be8c5f5d 100644 --- a/src/Type/Enum/AmPmEnum.php +++ b/src/Type/Enum/AmPmEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/CaptchaFieldBadgePositionEnum.php b/src/Type/Enum/CaptchaFieldBadgePositionEnum.php index 75ee3014..55ba4556 100644 --- a/src/Type/Enum/CaptchaFieldBadgePositionEnum.php +++ b/src/Type/Enum/CaptchaFieldBadgePositionEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/CaptchaFieldThemeEnum.php b/src/Type/Enum/CaptchaFieldThemeEnum.php index c5d3d916..fdba674b 100644 --- a/src/Type/Enum/CaptchaFieldThemeEnum.php +++ b/src/Type/Enum/CaptchaFieldThemeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/CaptchaFieldTypeEnum.php b/src/Type/Enum/CaptchaFieldTypeEnum.php index c860c256..9756b9a3 100644 --- a/src/Type/Enum/CaptchaFieldTypeEnum.php +++ b/src/Type/Enum/CaptchaFieldTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/ConditionalLogicActionTypeEnum.php b/src/Type/Enum/ConditionalLogicActionTypeEnum.php index bd2231aa..d6e79b95 100644 --- a/src/Type/Enum/ConditionalLogicActionTypeEnum.php +++ b/src/Type/Enum/ConditionalLogicActionTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/ConditionalLogicLogicTypeEnum.php b/src/Type/Enum/ConditionalLogicLogicTypeEnum.php index 128fe6e2..4cc2ba5e 100644 --- a/src/Type/Enum/ConditionalLogicLogicTypeEnum.php +++ b/src/Type/Enum/ConditionalLogicLogicTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/CurrencyEnum.php b/src/Type/Enum/CurrencyEnum.php index 7a7716b2..df51eac3 100644 --- a/src/Type/Enum/CurrencyEnum.php +++ b/src/Type/Enum/CurrencyEnum.php @@ -6,6 +6,8 @@ * @since 0.10.2 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; use RGCurrency; diff --git a/src/Type/Enum/DateFieldFormatEnum.php b/src/Type/Enum/DateFieldFormatEnum.php index f94d9ca3..f1ca714e 100644 --- a/src/Type/Enum/DateFieldFormatEnum.php +++ b/src/Type/Enum/DateFieldFormatEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/DateFieldTypeEnum.php b/src/Type/Enum/DateFieldTypeEnum.php index 215d7fd2..74e84763 100644 --- a/src/Type/Enum/DateFieldTypeEnum.php +++ b/src/Type/Enum/DateFieldTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/DraftEntryIdTypeEnum.php b/src/Type/Enum/DraftEntryIdTypeEnum.php index 5e907f96..0738fd4f 100644 --- a/src/Type/Enum/DraftEntryIdTypeEnum.php +++ b/src/Type/Enum/DraftEntryIdTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/EntryIdTypeEnum.php b/src/Type/Enum/EntryIdTypeEnum.php index 300aeeef..df67aa48 100644 --- a/src/Type/Enum/EntryIdTypeEnum.php +++ b/src/Type/Enum/EntryIdTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/EntryStatusEnum.php b/src/Type/Enum/EntryStatusEnum.php index 24e50ff3..93a8a6ea 100644 --- a/src/Type/Enum/EntryStatusEnum.php +++ b/src/Type/Enum/EntryStatusEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/EntryTypeEnum.php b/src/Type/Enum/EntryTypeEnum.php index 3a49f4f8..fbb1e7aa 100644 --- a/src/Type/Enum/EntryTypeEnum.php +++ b/src/Type/Enum/EntryTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FieldFiltersModeEnum.php b/src/Type/Enum/FieldFiltersModeEnum.php index 485caa25..1df12aa6 100644 --- a/src/Type/Enum/FieldFiltersModeEnum.php +++ b/src/Type/Enum/FieldFiltersModeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FieldFiltersOperatorInputEnum.php b/src/Type/Enum/FieldFiltersOperatorInputEnum.php index e0eb148d..5e2614f9 100644 --- a/src/Type/Enum/FieldFiltersOperatorInputEnum.php +++ b/src/Type/Enum/FieldFiltersOperatorInputEnum.php @@ -6,6 +6,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormButtonTypeEnum.php b/src/Type/Enum/FormButtonTypeEnum.php index 3514236e..ed0c62f8 100644 --- a/src/Type/Enum/FormButtonTypeEnum.php +++ b/src/Type/Enum/FormButtonTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormConfirmationTypeEnum.php b/src/Type/Enum/FormConfirmationTypeEnum.php index ac9dc009..9dce9a08 100644 --- a/src/Type/Enum/FormConfirmationTypeEnum.php +++ b/src/Type/Enum/FormConfirmationTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormCreditCardTypeEnum.php b/src/Type/Enum/FormCreditCardTypeEnum.php index 5ef38300..b9e6c16b 100644 --- a/src/Type/Enum/FormCreditCardTypeEnum.php +++ b/src/Type/Enum/FormCreditCardTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; use GFCommon; diff --git a/src/Type/Enum/FormDescriptionPlacementEnum.php b/src/Type/Enum/FormDescriptionPlacementEnum.php index 96941eed..2a0cf571 100644 --- a/src/Type/Enum/FormDescriptionPlacementEnum.php +++ b/src/Type/Enum/FormDescriptionPlacementEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormFieldCalendarIconTypeEnum.php b/src/Type/Enum/FormFieldCalendarIconTypeEnum.php index 4e23340c..26824d5d 100644 --- a/src/Type/Enum/FormFieldCalendarIconTypeEnum.php +++ b/src/Type/Enum/FormFieldCalendarIconTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormFieldDescriptionPlacementEnum.php b/src/Type/Enum/FormFieldDescriptionPlacementEnum.php index bd7339f7..2bd5aa38 100644 --- a/src/Type/Enum/FormFieldDescriptionPlacementEnum.php +++ b/src/Type/Enum/FormFieldDescriptionPlacementEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormFieldLabelPlacementEnum.php b/src/Type/Enum/FormFieldLabelPlacementEnum.php index e37f4e14..5d6fba92 100644 --- a/src/Type/Enum/FormFieldLabelPlacementEnum.php +++ b/src/Type/Enum/FormFieldLabelPlacementEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormFieldRequiredIndicatorEnum.php b/src/Type/Enum/FormFieldRequiredIndicatorEnum.php index c12f0659..3705fae0 100644 --- a/src/Type/Enum/FormFieldRequiredIndicatorEnum.php +++ b/src/Type/Enum/FormFieldRequiredIndicatorEnum.php @@ -6,6 +6,8 @@ * @since 0.6.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormFieldSizeEnum.php b/src/Type/Enum/FormFieldSizeEnum.php index ca79c176..2dc40c07 100644 --- a/src/Type/Enum/FormFieldSizeEnum.php +++ b/src/Type/Enum/FormFieldSizeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormFieldSubLabelPlacementEnum.php b/src/Type/Enum/FormFieldSubLabelPlacementEnum.php index 69024fff..f3995e4f 100644 --- a/src/Type/Enum/FormFieldSubLabelPlacementEnum.php +++ b/src/Type/Enum/FormFieldSubLabelPlacementEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormFieldTypeEnum.php b/src/Type/Enum/FormFieldTypeEnum.php index 3d6e9bbe..b95a4ff9 100644 --- a/src/Type/Enum/FormFieldTypeEnum.php +++ b/src/Type/Enum/FormFieldTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; use WPGraphQL\GF\Utils\Utils; diff --git a/src/Type/Enum/FormFieldVisibilityEnum.php b/src/Type/Enum/FormFieldVisibilityEnum.php index a5e98421..998e154d 100644 --- a/src/Type/Enum/FormFieldVisibilityEnum.php +++ b/src/Type/Enum/FormFieldVisibilityEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormIdTypeEnum.php b/src/Type/Enum/FormIdTypeEnum.php index 395255fa..9e8e252b 100644 --- a/src/Type/Enum/FormIdTypeEnum.php +++ b/src/Type/Enum/FormIdTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormLabelPlacementEnum.php b/src/Type/Enum/FormLabelPlacementEnum.php index ef776b28..431a82b0 100644 --- a/src/Type/Enum/FormLabelPlacementEnum.php +++ b/src/Type/Enum/FormLabelPlacementEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormLimitEntriesPeriodEnum.php b/src/Type/Enum/FormLimitEntriesPeriodEnum.php index 2eb5892e..6866411f 100644 --- a/src/Type/Enum/FormLimitEntriesPeriodEnum.php +++ b/src/Type/Enum/FormLimitEntriesPeriodEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormNotificationToTypeEnum.php b/src/Type/Enum/FormNotificationToTypeEnum.php index f20f2322..c6d813eb 100644 --- a/src/Type/Enum/FormNotificationToTypeEnum.php +++ b/src/Type/Enum/FormNotificationToTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormPageProgressStyleEnum.php b/src/Type/Enum/FormPageProgressStyleEnum.php index 7f81ab5c..59e12de4 100644 --- a/src/Type/Enum/FormPageProgressStyleEnum.php +++ b/src/Type/Enum/FormPageProgressStyleEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormPageProgressTypeEnum.php b/src/Type/Enum/FormPageProgressTypeEnum.php index 2d299631..7790453d 100644 --- a/src/Type/Enum/FormPageProgressTypeEnum.php +++ b/src/Type/Enum/FormPageProgressTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormRetentionPolicyEnum.php b/src/Type/Enum/FormRetentionPolicyEnum.php index 24fb028a..17744144 100644 --- a/src/Type/Enum/FormRetentionPolicyEnum.php +++ b/src/Type/Enum/FormRetentionPolicyEnum.php @@ -6,6 +6,8 @@ * @since 0.10.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormRuleOperatorEnum.php b/src/Type/Enum/FormRuleOperatorEnum.php index 596745c2..6d9635a9 100644 --- a/src/Type/Enum/FormRuleOperatorEnum.php +++ b/src/Type/Enum/FormRuleOperatorEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormStatusEnum.php b/src/Type/Enum/FormStatusEnum.php index 93d747cd..c53b30a5 100644 --- a/src/Type/Enum/FormStatusEnum.php +++ b/src/Type/Enum/FormStatusEnum.php @@ -6,6 +6,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormSubLabelPlacementEnum.php b/src/Type/Enum/FormSubLabelPlacementEnum.php index ec1a578d..3f340b19 100644 --- a/src/Type/Enum/FormSubLabelPlacementEnum.php +++ b/src/Type/Enum/FormSubLabelPlacementEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormSubmitButtonLocationEnum.php b/src/Type/Enum/FormSubmitButtonLocationEnum.php index 1ac8db3b..255affdb 100644 --- a/src/Type/Enum/FormSubmitButtonLocationEnum.php +++ b/src/Type/Enum/FormSubmitButtonLocationEnum.php @@ -6,6 +6,8 @@ * @since 0.11.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormSubmitButtonWidthEnum.php b/src/Type/Enum/FormSubmitButtonWidthEnum.php index e2765f56..666a59e9 100644 --- a/src/Type/Enum/FormSubmitButtonWidthEnum.php +++ b/src/Type/Enum/FormSubmitButtonWidthEnum.php @@ -6,6 +6,8 @@ * @since 0.11.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/FormsConnectionOrderByEnum.php b/src/Type/Enum/FormsConnectionOrderByEnum.php index 49ea66fc..522b633c 100644 --- a/src/Type/Enum/FormsConnectionOrderByEnum.php +++ b/src/Type/Enum/FormsConnectionOrderByEnum.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/NumberFieldFormatEnum.php b/src/Type/Enum/NumberFieldFormatEnum.php index 6661b00e..bfc7f2c8 100644 --- a/src/Type/Enum/NumberFieldFormatEnum.php +++ b/src/Type/Enum/NumberFieldFormatEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/PasswordFieldMinStrengthEnum.php b/src/Type/Enum/PasswordFieldMinStrengthEnum.php index cc21ad2a..b61a1480 100644 --- a/src/Type/Enum/PasswordFieldMinStrengthEnum.php +++ b/src/Type/Enum/PasswordFieldMinStrengthEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/PhoneFieldFormatEnum.php b/src/Type/Enum/PhoneFieldFormatEnum.php index 8a2e1115..280e2690 100644 --- a/src/Type/Enum/PhoneFieldFormatEnum.php +++ b/src/Type/Enum/PhoneFieldFormatEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/PostFormatTypeEnum.php b/src/Type/Enum/PostFormatTypeEnum.php index 16ba2972..f33b17a2 100644 --- a/src/Type/Enum/PostFormatTypeEnum.php +++ b/src/Type/Enum/PostFormatTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; use WPGraphQL\Type\WPEnumType; diff --git a/src/Type/Enum/RecaptchaTypeEnum.php b/src/Type/Enum/RecaptchaTypeEnum.php index e5caf2d4..01521b0b 100644 --- a/src/Type/Enum/RecaptchaTypeEnum.php +++ b/src/Type/Enum/RecaptchaTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.11.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/SubmissionConfirmationTypeEnum.php b/src/Type/Enum/SubmissionConfirmationTypeEnum.php index 1bf96486..6ca25257 100644 --- a/src/Type/Enum/SubmissionConfirmationTypeEnum.php +++ b/src/Type/Enum/SubmissionConfirmationTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.11.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/SubmittedEntryIdTypeEnum.php b/src/Type/Enum/SubmittedEntryIdTypeEnum.php index 93afb4ff..ca538a8e 100644 --- a/src/Type/Enum/SubmittedEntryIdTypeEnum.php +++ b/src/Type/Enum/SubmittedEntryIdTypeEnum.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Enum/TimeFieldFormatEnum.php b/src/Type/Enum/TimeFieldFormatEnum.php index b51c5c92..a68d5d5a 100644 --- a/src/Type/Enum/TimeFieldFormatEnum.php +++ b/src/Type/Enum/TimeFieldFormatEnum.php @@ -6,6 +6,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Enum; /** diff --git a/src/Type/Input/AbstractInput.php b/src/Type/Input/AbstractInput.php index f312d7d9..0a993347 100644 --- a/src/Type/Input/AbstractInput.php +++ b/src/Type/Input/AbstractInput.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; use WPGraphQL\GF\Interfaces\TypeWithDescription; diff --git a/src/Type/Input/AddressFieldInput.php b/src/Type/Input/AddressFieldInput.php index 59d01701..051cfb2a 100644 --- a/src/Type/Input/AddressFieldInput.php +++ b/src/Type/Input/AddressFieldInput.php @@ -7,6 +7,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; use WPGraphQL\GF\Type\Enum\AddressFieldCountryEnum; diff --git a/src/Type/Input/CheckboxFieldInput.php b/src/Type/Input/CheckboxFieldInput.php index 12656e18..0ed86a09 100644 --- a/src/Type/Input/CheckboxFieldInput.php +++ b/src/Type/Input/CheckboxFieldInput.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; /** diff --git a/src/Type/Input/CreditCardFieldInput.php b/src/Type/Input/CreditCardFieldInput.php index 3c91cf30..a293846c 100644 --- a/src/Type/Input/CreditCardFieldInput.php +++ b/src/Type/Input/CreditCardFieldInput.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; use WPGraphQL\GF\Type\Enum\FormCreditCardTypeEnum; diff --git a/src/Type/Input/EmailFieldInput.php b/src/Type/Input/EmailFieldInput.php index 3fc61574..4e47e3e5 100644 --- a/src/Type/Input/EmailFieldInput.php +++ b/src/Type/Input/EmailFieldInput.php @@ -7,6 +7,8 @@ * @since 0.5.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; /** diff --git a/src/Type/Input/EntriesConnectionOrderbyInput.php b/src/Type/Input/EntriesConnectionOrderbyInput.php index 8a4a0ea2..0334e06a 100644 --- a/src/Type/Input/EntriesConnectionOrderbyInput.php +++ b/src/Type/Input/EntriesConnectionOrderbyInput.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; /** diff --git a/src/Type/Input/EntriesDateFiltersInput.php b/src/Type/Input/EntriesDateFiltersInput.php index 61222f29..50726857 100644 --- a/src/Type/Input/EntriesDateFiltersInput.php +++ b/src/Type/Input/EntriesDateFiltersInput.php @@ -7,6 +7,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; /** diff --git a/src/Type/Input/EntriesFieldFiltersInput.php b/src/Type/Input/EntriesFieldFiltersInput.php index 8830a84b..8383442c 100644 --- a/src/Type/Input/EntriesFieldFiltersInput.php +++ b/src/Type/Input/EntriesFieldFiltersInput.php @@ -7,6 +7,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; use WPGraphQL\GF\Type\Enum\FieldFiltersOperatorInputEnum; diff --git a/src/Type/Input/FormFieldValuesInput.php b/src/Type/Input/FormFieldValuesInput.php index d60df728..efefca06 100644 --- a/src/Type/Input/FormFieldValuesInput.php +++ b/src/Type/Input/FormFieldValuesInput.php @@ -8,6 +8,8 @@ * @since 0.4.o */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; use WPGraphQL\GF\Utils\Utils; diff --git a/src/Type/Input/FormsConnectionOrderbyInput.php b/src/Type/Input/FormsConnectionOrderbyInput.php index 913e7d08..cd24d499 100644 --- a/src/Type/Input/FormsConnectionOrderbyInput.php +++ b/src/Type/Input/FormsConnectionOrderbyInput.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; use WPGraphQL\GF\Type\Enum\FormsConnectionOrderByEnum; diff --git a/src/Type/Input/ListFieldInput.php b/src/Type/Input/ListFieldInput.php index 5d30ca53..a0f909a6 100644 --- a/src/Type/Input/ListFieldInput.php +++ b/src/Type/Input/ListFieldInput.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; /** diff --git a/src/Type/Input/NameFieldInput.php b/src/Type/Input/NameFieldInput.php index d7f890f5..a6a1bdb6 100644 --- a/src/Type/Input/NameFieldInput.php +++ b/src/Type/Input/NameFieldInput.php @@ -7,6 +7,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; /** diff --git a/src/Type/Input/PostImageFieldInput.php b/src/Type/Input/PostImageFieldInput.php index 59d42941..65113302 100644 --- a/src/Type/Input/PostImageFieldInput.php +++ b/src/Type/Input/PostImageFieldInput.php @@ -7,6 +7,8 @@ * @since 0.7.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; /** diff --git a/src/Type/Input/ProductFieldInput.php b/src/Type/Input/ProductFieldInput.php index c97f3bc0..98565717 100644 --- a/src/Type/Input/ProductFieldInput.php +++ b/src/Type/Input/ProductFieldInput.php @@ -7,6 +7,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; /** diff --git a/src/Type/Input/SubmitFormMetaInput.php b/src/Type/Input/SubmitFormMetaInput.php index a09e0225..fbef2aee 100644 --- a/src/Type/Input/SubmitFormMetaInput.php +++ b/src/Type/Input/SubmitFormMetaInput.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; /** diff --git a/src/Type/Input/UpdateDraftEntryMetaInput.php b/src/Type/Input/UpdateDraftEntryMetaInput.php index de74e2b8..5941d087 100644 --- a/src/Type/Input/UpdateDraftEntryMetaInput.php +++ b/src/Type/Input/UpdateDraftEntryMetaInput.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; /** diff --git a/src/Type/Input/UpdateEntryMetaInput.php b/src/Type/Input/UpdateEntryMetaInput.php index 4094151e..3d11fcbf 100644 --- a/src/Type/Input/UpdateEntryMetaInput.php +++ b/src/Type/Input/UpdateEntryMetaInput.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\Input; use WPGraphQL\GF\Type\Enum\EntryStatusEnum; diff --git a/src/Type/WPInterface/AbstractInterface.php b/src/Type/WPInterface/AbstractInterface.php index eec7ec83..f6dc26b4 100644 --- a/src/Type/WPInterface/AbstractInterface.php +++ b/src/Type/WPInterface/AbstractInterface.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface; use WPGraphQL\GF\Interfaces\TypeWithDescription; diff --git a/src/Type/WPInterface/Entry.php b/src/Type/WPInterface/Entry.php index 5974abd7..8a8ff9b1 100644 --- a/src/Type/WPInterface/Entry.php +++ b/src/Type/WPInterface/Entry.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface; use GFCommon; diff --git a/src/Type/WPInterface/FieldChoice.php b/src/Type/WPInterface/FieldChoice.php index b850cd4a..6ffae863 100644 --- a/src/Type/WPInterface/FieldChoice.php +++ b/src/Type/WPInterface/FieldChoice.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface; use GraphQL\Error\UserError; diff --git a/src/Type/WPInterface/FieldChoiceSetting/AbstractFieldChoiceSetting.php b/src/Type/WPInterface/FieldChoiceSetting/AbstractFieldChoiceSetting.php index c94f66dc..52c5b31f 100644 --- a/src/Type/WPInterface/FieldChoiceSetting/AbstractFieldChoiceSetting.php +++ b/src/Type/WPInterface/FieldChoiceSetting/AbstractFieldChoiceSetting.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldChoiceSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithChoices.php b/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithChoices.php index 90b3cebb..305fc40d 100644 --- a/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithChoices.php +++ b/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldChoiceSetting; use GF_Field; diff --git a/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithColumns.php b/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithColumns.php index 2c1385d3..989e17ce 100644 --- a/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithColumns.php +++ b/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithColumns.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldChoiceSetting; use WPGraphQL\GF\Type\WPInterface\FieldChoice; diff --git a/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithName.php b/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithName.php index d69d9751..f2e9761d 100644 --- a/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithName.php +++ b/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithName.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldChoiceSetting; use GF_Field; diff --git a/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithOtherChoice.php b/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithOtherChoice.php index 400174c8..ae7b6a1f 100644 --- a/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithOtherChoice.php +++ b/src/Type/WPInterface/FieldChoiceSetting/ChoiceWithOtherChoice.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldChoiceSetting; use GF_Field; diff --git a/src/Type/WPInterface/FieldInput.php b/src/Type/WPInterface/FieldInput.php index 28bca4f8..4a0ab7d5 100644 --- a/src/Type/WPInterface/FieldInput.php +++ b/src/Type/WPInterface/FieldInput.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface; use GraphQL\Error\UserError; diff --git a/src/Type/WPInterface/FieldInputSetting/AbstractFieldInputSetting.php b/src/Type/WPInterface/FieldInputSetting/AbstractFieldInputSetting.php index 364e933f..a3d0635e 100644 --- a/src/Type/WPInterface/FieldInputSetting/AbstractFieldInputSetting.php +++ b/src/Type/WPInterface/FieldInputSetting/AbstractFieldInputSetting.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldInputSetting; use WPGraphQL\GF\Type\WPInterface\AbstractInterface; diff --git a/src/Type/WPInterface/FieldInputSetting/InputWithAddress.php b/src/Type/WPInterface/FieldInputSetting/InputWithAddress.php index bc360c70..46cdff65 100644 --- a/src/Type/WPInterface/FieldInputSetting/InputWithAddress.php +++ b/src/Type/WPInterface/FieldInputSetting/InputWithAddress.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldInputSetting; use WPGraphQL\GF\Type\WPInterface\FieldInputSetting\AbstractFieldInputSetting; diff --git a/src/Type/WPInterface/FieldInputSetting/InputWithDateFormat.php b/src/Type/WPInterface/FieldInputSetting/InputWithDateFormat.php index cbf02200..66f0e77d 100644 --- a/src/Type/WPInterface/FieldInputSetting/InputWithDateFormat.php +++ b/src/Type/WPInterface/FieldInputSetting/InputWithDateFormat.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldInputSetting; use WPGraphQL\GF\Type\WPInterface\FieldInputSetting\AbstractFieldInputSetting; diff --git a/src/Type/WPInterface/FieldInputSetting/InputWithEmailConfirmation.php b/src/Type/WPInterface/FieldInputSetting/InputWithEmailConfirmation.php index e57fe7cb..36f02813 100644 --- a/src/Type/WPInterface/FieldInputSetting/InputWithEmailConfirmation.php +++ b/src/Type/WPInterface/FieldInputSetting/InputWithEmailConfirmation.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldInputSetting; use WPGraphQL\GF\Type\WPInterface\FieldInputSetting\AbstractFieldInputSetting; diff --git a/src/Type/WPInterface/FieldInputSetting/InputWithName.php b/src/Type/WPInterface/FieldInputSetting/InputWithName.php index 5d7e914c..39571f65 100644 --- a/src/Type/WPInterface/FieldInputSetting/InputWithName.php +++ b/src/Type/WPInterface/FieldInputSetting/InputWithName.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldInputSetting; use WPGraphQL\GF\Type\WPInterface\FieldInputSetting\AbstractFieldInputSetting; diff --git a/src/Type/WPInterface/FieldInputSetting/InputWithPassword.php b/src/Type/WPInterface/FieldInputSetting/InputWithPassword.php index 4f598121..a6881e58 100644 --- a/src/Type/WPInterface/FieldInputSetting/InputWithPassword.php +++ b/src/Type/WPInterface/FieldInputSetting/InputWithPassword.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldInputSetting; use WPGraphQL\GF\Type\WPInterface\FieldInputSetting\AbstractFieldInputSetting; diff --git a/src/Type/WPInterface/FieldInputSetting/InputWithSelectAllChoices.php b/src/Type/WPInterface/FieldInputSetting/InputWithSelectAllChoices.php index fe250500..b4abf01c 100644 --- a/src/Type/WPInterface/FieldInputSetting/InputWithSelectAllChoices.php +++ b/src/Type/WPInterface/FieldInputSetting/InputWithSelectAllChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldInputSetting; use WPGraphQL\GF\Type\WPInterface\FieldInputSetting\AbstractFieldInputSetting; diff --git a/src/Type/WPInterface/FieldInputSetting/InputWithSingleProduct.php b/src/Type/WPInterface/FieldInputSetting/InputWithSingleProduct.php index 636d730f..0f863d96 100644 --- a/src/Type/WPInterface/FieldInputSetting/InputWithSingleProduct.php +++ b/src/Type/WPInterface/FieldInputSetting/InputWithSingleProduct.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldInputSetting; use WPGraphQL\GF\Type\WPInterface\FieldInputSetting\AbstractFieldInputSetting; diff --git a/src/Type/WPInterface/FieldInputSetting/InputWithTimeFormat.php b/src/Type/WPInterface/FieldInputSetting/InputWithTimeFormat.php index 773a5d3b..f8dc375f 100644 --- a/src/Type/WPInterface/FieldInputSetting/InputWithTimeFormat.php +++ b/src/Type/WPInterface/FieldInputSetting/InputWithTimeFormat.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldInputSetting; use WPGraphQL\GF\Type\WPInterface\FieldInputSetting\AbstractFieldInputSetting; diff --git a/src/Type/WPInterface/FieldSetting/AbstractFieldSetting.php b/src/Type/WPInterface/FieldSetting/AbstractFieldSetting.php index 5c6f0d55..de6b4f23 100644 --- a/src/Type/WPInterface/FieldSetting/AbstractFieldSetting.php +++ b/src/Type/WPInterface/FieldSetting/AbstractFieldSetting.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPInterface\AbstractInterface; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithAddIconUrl.php b/src/Type/WPInterface/FieldSetting/FieldWithAddIconUrl.php index 3044225d..dcad2198 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithAddIconUrl.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithAddIconUrl.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithAddress.php b/src/Type/WPInterface/FieldSetting/FieldWithAddress.php index 2ca1bc9c..0093f2ab 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithAddress.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithAddress.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithAdminLabel.php b/src/Type/WPInterface/FieldSetting/FieldWithAdminLabel.php index 600c537c..2ff634a0 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithAdminLabel.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithAdminLabel.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithAutocomplete.php b/src/Type/WPInterface/FieldSetting/FieldWithAutocomplete.php index ae18e8eb..c8c2598a 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithAutocomplete.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithAutocomplete.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use GF_Field; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithBasePrice.php b/src/Type/WPInterface/FieldSetting/FieldWithBasePrice.php index 204da26f..17042f73 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithBasePrice.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithBasePrice.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCalculation.php b/src/Type/WPInterface/FieldSetting/FieldWithCalculation.php index 3a999524..8eb3a092 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCalculation.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCalculation.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaBackground.php b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaBackground.php index edd9d37e..72c3dca6 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaBackground.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaBackground.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaBadge.php b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaBadge.php index 2c64cf52..af721ae4 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaBadge.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaBadge.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\CaptchaFieldBadgePositionEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaForeground.php b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaForeground.php index c96f7344..524a352a 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaForeground.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaForeground.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaLanguage.php b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaLanguage.php index 9a758fdf..1bdbadf0 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaLanguage.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaLanguage.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaSize.php b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaSize.php index 6f00506b..c7de69cd 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaSize.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaSize.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\FormFieldSizeEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaTheme.php b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaTheme.php index 89535ca6..2539169d 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaTheme.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaTheme.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\CaptchaFieldThemeEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaType.php b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaType.php index 63b4f3d6..0b90d17e 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCaptchaType.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCaptchaType.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\CaptchaFieldTypeEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCheckboxLabel.php b/src/Type/WPInterface/FieldSetting/FieldWithCheckboxLabel.php index 3e38dec7..061aa70e 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCheckboxLabel.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCheckboxLabel.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithChoices.php b/src/Type/WPInterface/FieldSetting/FieldWithChoices.php index eeaf1721..b98d1c6d 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithChoices.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithColumns.php b/src/Type/WPInterface/FieldSetting/FieldWithColumns.php index 1dd5bc9e..01ba51f5 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithColumns.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithColumns.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithConditionalLogic.php b/src/Type/WPInterface/FieldSetting/FieldWithConditionalLogic.php index 08ff9f3f..d15ea503 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithConditionalLogic.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithConditionalLogic.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPObject\ConditionalLogic\ConditionalLogic; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithContent.php b/src/Type/WPInterface/FieldSetting/FieldWithContent.php index 688bd706..cd4984ab 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithContent.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithContent.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCopyValuesOption.php b/src/Type/WPInterface/FieldSetting/FieldWithCopyValuesOption.php index 5c319be9..3b4005a0 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCopyValuesOption.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCopyValuesOption.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCreditCard.php b/src/Type/WPInterface/FieldSetting/FieldWithCreditCard.php index 8912e3c6..3dbe924c 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCreditCard.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCreditCard.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\FormCreditCardTypeEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithCssClass.php b/src/Type/WPInterface/FieldSetting/FieldWithCssClass.php index 3ba38a52..5032f341 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithCssClass.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithCssClass.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithDateFormat.php b/src/Type/WPInterface/FieldSetting/FieldWithDateFormat.php index 11215629..b9c86390 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithDateFormat.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithDateFormat.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithDateInputType.php b/src/Type/WPInterface/FieldSetting/FieldWithDateInputType.php index f28699af..c5f84349 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithDateInputType.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithDateInputType.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\DateFieldTypeEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithDefaultValue.php b/src/Type/WPInterface/FieldSetting/FieldWithDefaultValue.php index c952e2cc..7ed29fbe 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithDefaultValue.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithDefaultValue.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithDeleteIconUrl.php b/src/Type/WPInterface/FieldSetting/FieldWithDeleteIconUrl.php index a302759c..430a45ec 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithDeleteIconUrl.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithDeleteIconUrl.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithDescription.php b/src/Type/WPInterface/FieldSetting/FieldWithDescription.php index 3a7e0cae..f6daf6c5 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithDescription.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithDescription.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithDisableMargins.php b/src/Type/WPInterface/FieldSetting/FieldWithDisableMargins.php index a758a05f..1c6e782d 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithDisableMargins.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithDisableMargins.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithDisableQuantity.php b/src/Type/WPInterface/FieldSetting/FieldWithDisableQuantity.php index 537d5ec1..99283710 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithDisableQuantity.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithDisableQuantity.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithDuplicates.php b/src/Type/WPInterface/FieldSetting/FieldWithDuplicates.php index 41e08bfa..1087cb3e 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithDuplicates.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithDuplicates.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithEmailConfirmation.php b/src/Type/WPInterface/FieldSetting/FieldWithEmailConfirmation.php index 0bed17c3..30c2fd22 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithEmailConfirmation.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithEmailConfirmation.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithEnhancedUI.php b/src/Type/WPInterface/FieldSetting/FieldWithEnhancedUI.php index f369e82b..75397a8f 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithEnhancedUI.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithEnhancedUI.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithErrorMessage.php b/src/Type/WPInterface/FieldSetting/FieldWithErrorMessage.php index d4846134..41807406 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithErrorMessage.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithErrorMessage.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithFileExtensions.php b/src/Type/WPInterface/FieldSetting/FieldWithFileExtensions.php index b999aeab..8bbf8865 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithFileExtensions.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithFileExtensions.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithFileSize.php b/src/Type/WPInterface/FieldSetting/FieldWithFileSize.php index d24e1572..48bd91db 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithFileSize.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithFileSize.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithForceSSLField.php b/src/Type/WPInterface/FieldSetting/FieldWithForceSSLField.php index c24a6776..49da4d38 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithForceSSLField.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithForceSSLField.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithInputMask.php b/src/Type/WPInterface/FieldSetting/FieldWithInputMask.php index 234f9bb7..bad80a3a 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithInputMask.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithInputMask.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithLabel.php b/src/Type/WPInterface/FieldSetting/FieldWithLabel.php index 660a7fd6..8a5aa0e9 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithLabel.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithLabel.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithLabelPlacement.php b/src/Type/WPInterface/FieldSetting/FieldWithLabelPlacement.php index f94af4a1..16b2fc03 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithLabelPlacement.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithLabelPlacement.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\FormFieldDescriptionPlacementEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithMaxLength.php b/src/Type/WPInterface/FieldSetting/FieldWithMaxLength.php index a7bc9886..893ba6c0 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithMaxLength.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithMaxLength.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use GF_Field; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithMaxRows.php b/src/Type/WPInterface/FieldSetting/FieldWithMaxRows.php index f7faaaac..76570888 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithMaxRows.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithMaxRows.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithMultipleFiles.php b/src/Type/WPInterface/FieldSetting/FieldWithMultipleFiles.php index 9ee067f2..264ac43b 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithMultipleFiles.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithMultipleFiles.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithName.php b/src/Type/WPInterface/FieldSetting/FieldWithName.php index e9959733..4e7eab0a 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithName.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithName.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithNextButton.php b/src/Type/WPInterface/FieldSetting/FieldWithNextButton.php index 01d4c1a3..8ee57f6c 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithNextButton.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithNextButton.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPObject\Button\FormButton; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithNumberFormat.php b/src/Type/WPInterface/FieldSetting/FieldWithNumberFormat.php index 3795c8fe..e0b72b0b 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithNumberFormat.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithNumberFormat.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\NumberFieldFormatEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithOtherChoice.php b/src/Type/WPInterface/FieldSetting/FieldWithOtherChoice.php index 8c82cbb3..9f7d210e 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithOtherChoice.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithOtherChoice.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPassword.php b/src/Type/WPInterface/FieldSetting/FieldWithPassword.php index fb7009f6..b0f3fe6c 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPassword.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPassword.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPasswordField.php b/src/Type/WPInterface/FieldSetting/FieldWithPasswordField.php index efd72e9b..8967f4e2 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPasswordField.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPasswordField.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPasswordStrength.php b/src/Type/WPInterface/FieldSetting/FieldWithPasswordStrength.php index e4378962..ce9adb50 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPasswordStrength.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPasswordStrength.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\PasswordFieldMinStrengthEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPasswordVisibility.php b/src/Type/WPInterface/FieldSetting/FieldWithPasswordVisibility.php index eead2d93..c79d0171 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPasswordVisibility.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPasswordVisibility.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPhoneFormat.php b/src/Type/WPInterface/FieldSetting/FieldWithPhoneFormat.php index 2bfece0f..753fe824 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPhoneFormat.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPhoneFormat.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\PhoneFieldFormatEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPlaceholder.php b/src/Type/WPInterface/FieldSetting/FieldWithPlaceholder.php index 3bea74f9..ddeb2aba 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPlaceholder.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPlaceholder.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPostCategoryCheckbox.php b/src/Type/WPInterface/FieldSetting/FieldWithPostCategoryCheckbox.php index c3043217..a54c159a 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPostCategoryCheckbox.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPostCategoryCheckbox.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPostCategoryInitialItem.php b/src/Type/WPInterface/FieldSetting/FieldWithPostCategoryInitialItem.php index a397e7b1..68f8eddf 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPostCategoryInitialItem.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPostCategoryInitialItem.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPostCustomField.php b/src/Type/WPInterface/FieldSetting/FieldWithPostCustomField.php index 67236dcf..aa9a117c 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPostCustomField.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPostCustomField.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPostImage.php b/src/Type/WPInterface/FieldSetting/FieldWithPostImage.php index ea412288..99f42950 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPostImage.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPostImage.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPostImageFeaturedImage.php b/src/Type/WPInterface/FieldSetting/FieldWithPostImageFeaturedImage.php index 29f53444..cec927d7 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPostImageFeaturedImage.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPostImageFeaturedImage.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPrepopulateField.php b/src/Type/WPInterface/FieldSetting/FieldWithPrepopulateField.php index 3319018d..62160419 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPrepopulateField.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPrepopulateField.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use GF_Field; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithPreviousButton.php b/src/Type/WPInterface/FieldSetting/FieldWithPreviousButton.php index 6164e74a..a2d5c0ec 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithPreviousButton.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithPreviousButton.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\WPObject\Button\FormButton; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithProductField.php b/src/Type/WPInterface/FieldSetting/FieldWithProductField.php index 82a3548a..9a8f1a6e 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithProductField.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithProductField.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithRange.php b/src/Type/WPInterface/FieldSetting/FieldWithRange.php index 8191cbb3..752cefe2 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithRange.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithRange.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithRichTextEditor.php b/src/Type/WPInterface/FieldSetting/FieldWithRichTextEditor.php index 4dd74464..240c4595 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithRichTextEditor.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithRichTextEditor.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithRules.php b/src/Type/WPInterface/FieldSetting/FieldWithRules.php index 4b611429..29a20111 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithRules.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithRules.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; /** diff --git a/src/Type/WPInterface/FieldSetting/FieldWithSelectAllChoices.php b/src/Type/WPInterface/FieldSetting/FieldWithSelectAllChoices.php index b237c3e9..928ccc8d 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithSelectAllChoices.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithSelectAllChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithSingleProductInputs.php b/src/Type/WPInterface/FieldSetting/FieldWithSingleProductInputs.php index 35349984..236d7d40 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithSingleProductInputs.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithSingleProductInputs.php @@ -8,6 +8,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithSize.php b/src/Type/WPInterface/FieldSetting/FieldWithSize.php index a6f1f7c1..6898e566 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithSize.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithSize.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\FormFieldSizeEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithSubLabelPlacement.php b/src/Type/WPInterface/FieldSetting/FieldWithSubLabelPlacement.php index db300dae..0ea44242 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithSubLabelPlacement.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithSubLabelPlacement.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Type\Enum\FormFieldSubLabelPlacementEnum; diff --git a/src/Type/WPInterface/FieldSetting/FieldWithTimeFormat.php b/src/Type/WPInterface/FieldSetting/FieldWithTimeFormat.php index 3a35251f..fbe6e0db 100644 --- a/src/Type/WPInterface/FieldSetting/FieldWithTimeFormat.php +++ b/src/Type/WPInterface/FieldSetting/FieldWithTimeFormat.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldSetting; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPInterface/FieldValue/FieldValueWithChoice.php b/src/Type/WPInterface/FieldValue/FieldValueWithChoice.php index 31ef2a7a..31fd70dd 100644 --- a/src/Type/WPInterface/FieldValue/FieldValueWithChoice.php +++ b/src/Type/WPInterface/FieldValue/FieldValueWithChoice.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldValue; use WPGraphQL\GF\Type\WPInterface\AbstractInterface; diff --git a/src/Type/WPInterface/FieldValue/FieldValueWithInput.php b/src/Type/WPInterface/FieldValue/FieldValueWithInput.php index 81e158bc..37ad81d6 100644 --- a/src/Type/WPInterface/FieldValue/FieldValueWithInput.php +++ b/src/Type/WPInterface/FieldValue/FieldValueWithInput.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface\FieldValue; use WPGraphQL\GF\Type\WPInterface\AbstractInterface; diff --git a/src/Type/WPInterface/FieldWithChoices.php b/src/Type/WPInterface/FieldWithChoices.php index d0b774e5..c8e62c22 100644 --- a/src/Type/WPInterface/FieldWithChoices.php +++ b/src/Type/WPInterface/FieldWithChoices.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface; use WPGraphQL\AppContext; diff --git a/src/Type/WPInterface/FieldWithInputs.php b/src/Type/WPInterface/FieldWithInputs.php index d69280d0..1914560a 100644 --- a/src/Type/WPInterface/FieldWithInputs.php +++ b/src/Type/WPInterface/FieldWithInputs.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface; use WPGraphQL\AppContext; diff --git a/src/Type/WPInterface/FieldWithPersonalData.php b/src/Type/WPInterface/FieldWithPersonalData.php index 9f20c721..1c5e6e21 100644 --- a/src/Type/WPInterface/FieldWithPersonalData.php +++ b/src/Type/WPInterface/FieldWithPersonalData.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface; use GF_Field; diff --git a/src/Type/WPInterface/FormField.php b/src/Type/WPInterface/FormField.php index 080dc892..1e8d04f4 100644 --- a/src/Type/WPInterface/FormField.php +++ b/src/Type/WPInterface/FormField.php @@ -9,6 +9,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface; use GraphQL\Error\UserError; diff --git a/src/Type/WPInterface/NodeWithForm.php b/src/Type/WPInterface/NodeWithForm.php index 71fa7050..eaf25f45 100644 --- a/src/Type/WPInterface/NodeWithForm.php +++ b/src/Type/WPInterface/NodeWithForm.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPInterface; use WPGraphQL\AppContext; diff --git a/src/Type/WPObject/AbstractObject.php b/src/Type/WPObject/AbstractObject.php index de667f33..7f07ca7c 100644 --- a/src/Type/WPObject/AbstractObject.php +++ b/src/Type/WPObject/AbstractObject.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject; use WPGraphQL\GF\Interfaces\TypeWithDescription; diff --git a/src/Type/WPObject/Button/FormButton.php b/src/Type/WPObject/Button/FormButton.php index d47cc862..a11782a8 100644 --- a/src/Type/WPObject/Button/FormButton.php +++ b/src/Type/WPObject/Button/FormButton.php @@ -8,6 +8,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Button; use WPGraphQL\GF\Type\Enum\FormButtonTypeEnum; diff --git a/src/Type/WPObject/Button/FormLastPageButton.php b/src/Type/WPObject/Button/FormLastPageButton.php index 868ef48b..3ce587ba 100644 --- a/src/Type/WPObject/Button/FormLastPageButton.php +++ b/src/Type/WPObject/Button/FormLastPageButton.php @@ -8,6 +8,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Button; use WPGraphQL\GF\Type\Enum\FormButtonTypeEnum; diff --git a/src/Type/WPObject/ConditionalLogic/ConditionalLogic.php b/src/Type/WPObject/ConditionalLogic/ConditionalLogic.php index 9c50fa9e..21f93e23 100644 --- a/src/Type/WPObject/ConditionalLogic/ConditionalLogic.php +++ b/src/Type/WPObject/ConditionalLogic/ConditionalLogic.php @@ -8,6 +8,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\ConditionalLogic; use WPGraphQL\GF\Type\Enum\ConditionalLogicActionTypeEnum; diff --git a/src/Type/WPObject/ConditionalLogic/ConditionalLogicRule.php b/src/Type/WPObject/ConditionalLogic/ConditionalLogicRule.php index 4655302e..f6aa53b2 100644 --- a/src/Type/WPObject/ConditionalLogic/ConditionalLogicRule.php +++ b/src/Type/WPObject/ConditionalLogic/ConditionalLogicRule.php @@ -8,6 +8,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\ConditionalLogic; use WPGraphQL\GF\Type\Enum\FormRuleOperatorEnum; diff --git a/src/Type/WPObject/Entry/DraftEntry.php b/src/Type/WPObject/Entry/DraftEntry.php index 9b9579f5..780a4fef 100644 --- a/src/Type/WPObject/Entry/DraftEntry.php +++ b/src/Type/WPObject/Entry/DraftEntry.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Entry; use GraphQL\Error\UserError; diff --git a/src/Type/WPObject/Entry/SubmittedEntry.php b/src/Type/WPObject/Entry/SubmittedEntry.php index 1f81d5ac..40473aeb 100644 --- a/src/Type/WPObject/Entry/SubmittedEntry.php +++ b/src/Type/WPObject/Entry/SubmittedEntry.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Entry; use WPGraphQL\AppContext; diff --git a/src/Type/WPObject/FieldError.php b/src/Type/WPObject/FieldError.php index 702c5afd..3b1a0c2b 100644 --- a/src/Type/WPObject/FieldError.php +++ b/src/Type/WPObject/FieldError.php @@ -7,6 +7,8 @@ * @since 0.4.0 add `id` property. */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/Form/Form.php b/src/Type/WPObject/Form/Form.php index 2f883942..c2ae6a97 100644 --- a/src/Type/WPObject/Form/Form.php +++ b/src/Type/WPObject/Form/Form.php @@ -8,6 +8,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use GraphQL\Type\Definition\ResolveInfo; diff --git a/src/Type/WPObject/Form/FormConfirmation.php b/src/Type/WPObject/Form/FormConfirmation.php index b6fd4f14..9ad98a52 100644 --- a/src/Type/WPObject/Form/FormConfirmation.php +++ b/src/Type/WPObject/Form/FormConfirmation.php @@ -8,6 +8,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use GraphQL\Type\Definition\ResolveInfo; diff --git a/src/Type/WPObject/Form/FormDataPolicies.php b/src/Type/WPObject/Form/FormDataPolicies.php index a20ec369..aeebeb7d 100644 --- a/src/Type/WPObject/Form/FormDataPolicies.php +++ b/src/Type/WPObject/Form/FormDataPolicies.php @@ -6,6 +6,8 @@ * @since 0.10.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/Form/FormEntryDataPolicy.php b/src/Type/WPObject/Form/FormEntryDataPolicy.php index 21d49498..17115ff2 100644 --- a/src/Type/WPObject/Form/FormEntryDataPolicy.php +++ b/src/Type/WPObject/Form/FormEntryDataPolicy.php @@ -6,6 +6,8 @@ * @since 0.10.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/Form/FormEntryLimits.php b/src/Type/WPObject/Form/FormEntryLimits.php index 23fcf8d7..38c1a22b 100644 --- a/src/Type/WPObject/Form/FormEntryLimits.php +++ b/src/Type/WPObject/Form/FormEntryLimits.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\Enum\FormLimitEntriesPeriodEnum; diff --git a/src/Type/WPObject/Form/FormLogin.php b/src/Type/WPObject/Form/FormLogin.php index 2b1baed3..9200baa5 100644 --- a/src/Type/WPObject/Form/FormLogin.php +++ b/src/Type/WPObject/Form/FormLogin.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/Form/FormNotification.php b/src/Type/WPObject/Form/FormNotification.php index f21e19d0..5282aba7 100644 --- a/src/Type/WPObject/Form/FormNotification.php +++ b/src/Type/WPObject/Form/FormNotification.php @@ -8,6 +8,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\Enum\FormNotificationToTypeEnum; diff --git a/src/Type/WPObject/Form/FormNotificationRouting.php b/src/Type/WPObject/Form/FormNotificationRouting.php index 2cd39273..3a1d3575 100644 --- a/src/Type/WPObject/Form/FormNotificationRouting.php +++ b/src/Type/WPObject/Form/FormNotificationRouting.php @@ -9,6 +9,8 @@ * @since 0.3.1 `fieldId` changed to type `Int`. */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\Enum\FormRuleOperatorEnum; diff --git a/src/Type/WPObject/Form/FormPagination.php b/src/Type/WPObject/Form/FormPagination.php index c711397f..b7bff909 100644 --- a/src/Type/WPObject/Form/FormPagination.php +++ b/src/Type/WPObject/Form/FormPagination.php @@ -8,6 +8,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\Enum\FormPageProgressStyleEnum; diff --git a/src/Type/WPObject/Form/FormPersonalData.php b/src/Type/WPObject/Form/FormPersonalData.php index d366e481..f402d1c0 100644 --- a/src/Type/WPObject/Form/FormPersonalData.php +++ b/src/Type/WPObject/Form/FormPersonalData.php @@ -6,6 +6,8 @@ * @since 0.10.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\Enum\FormRetentionPolicyEnum; diff --git a/src/Type/WPObject/Form/FormPostCreation.php b/src/Type/WPObject/Form/FormPostCreation.php index fdee2898..df038ef6 100644 --- a/src/Type/WPObject/Form/FormPostCreation.php +++ b/src/Type/WPObject/Form/FormPostCreation.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\AppContext; diff --git a/src/Type/WPObject/Form/FormSaveAndContinue.php b/src/Type/WPObject/Form/FormSaveAndContinue.php index 8b670c22..d35ce321 100644 --- a/src/Type/WPObject/Form/FormSaveAndContinue.php +++ b/src/Type/WPObject/Form/FormSaveAndContinue.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/Form/FormSchedule.php b/src/Type/WPObject/Form/FormSchedule.php index a1ddaf39..5bf54fdd 100644 --- a/src/Type/WPObject/Form/FormSchedule.php +++ b/src/Type/WPObject/Form/FormSchedule.php @@ -6,6 +6,8 @@ * @since 0.0.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/Form/FormScheduleDetails.php b/src/Type/WPObject/Form/FormScheduleDetails.php index a0024fb0..1346cefc 100644 --- a/src/Type/WPObject/Form/FormScheduleDetails.php +++ b/src/Type/WPObject/Form/FormScheduleDetails.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\Enum\AmPmEnum; diff --git a/src/Type/WPObject/Form/FormSubmitButton.php b/src/Type/WPObject/Form/FormSubmitButton.php index 1d35b43b..1b4e6322 100644 --- a/src/Type/WPObject/Form/FormSubmitButton.php +++ b/src/Type/WPObject/Form/FormSubmitButton.php @@ -8,6 +8,8 @@ * @since 0.11.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Form; use WPGraphQL\GF\Type\Enum\FormButtonTypeEnum; diff --git a/src/Type/WPObject/FormField/FieldValue/FieldValues.php b/src/Type/WPObject/FormField/FieldValue/FieldValues.php index 8652d257..19fee0c8 100644 --- a/src/Type/WPObject/FormField/FieldValue/FieldValues.php +++ b/src/Type/WPObject/FormField/FieldValue/FieldValues.php @@ -6,6 +6,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField\FieldValue; use GFAPI; diff --git a/src/Type/WPObject/FormField/FieldValue/ValueProperty/AddressFieldValue.php b/src/Type/WPObject/FormField/FieldValue/ValueProperty/AddressFieldValue.php index cddf66a1..692c727b 100644 --- a/src/Type/WPObject/FormField/FieldValue/ValueProperty/AddressFieldValue.php +++ b/src/Type/WPObject/FormField/FieldValue/ValueProperty/AddressFieldValue.php @@ -7,6 +7,8 @@ * @since 0.5.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField\FieldValue\ValueProperty; use WPGraphQL\GF\Type\Enum\AddressFieldCountryEnum; diff --git a/src/Type/WPObject/FormField/FieldValue/ValueProperty/CheckboxFieldValue.php b/src/Type/WPObject/FormField/FieldValue/ValueProperty/CheckboxFieldValue.php index c79b1968..6f84ff27 100644 --- a/src/Type/WPObject/FormField/FieldValue/ValueProperty/CheckboxFieldValue.php +++ b/src/Type/WPObject/FormField/FieldValue/ValueProperty/CheckboxFieldValue.php @@ -7,6 +7,8 @@ * @since 0.5.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField\FieldValue\ValueProperty; use WPGraphQL\GF\Interfaces\TypeWithInterfaces; diff --git a/src/Type/WPObject/FormField/FieldValue/ValueProperty/FileUploadFieldValue.php b/src/Type/WPObject/FormField/FieldValue/ValueProperty/FileUploadFieldValue.php index fd352403..38684bb2 100644 --- a/src/Type/WPObject/FormField/FieldValue/ValueProperty/FileUploadFieldValue.php +++ b/src/Type/WPObject/FormField/FieldValue/ValueProperty/FileUploadFieldValue.php @@ -7,6 +7,8 @@ * @since 0.11.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField\FieldValue\ValueProperty; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/FormField/FieldValue/ValueProperty/ImageFieldValue.php b/src/Type/WPObject/FormField/FieldValue/ValueProperty/ImageFieldValue.php index 9bf81650..612a13a9 100644 --- a/src/Type/WPObject/FormField/FieldValue/ValueProperty/ImageFieldValue.php +++ b/src/Type/WPObject/FormField/FieldValue/ValueProperty/ImageFieldValue.php @@ -7,6 +7,8 @@ * @since 0.5.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField\FieldValue\ValueProperty; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/FormField/FieldValue/ValueProperty/ListFieldValue.php b/src/Type/WPObject/FormField/FieldValue/ValueProperty/ListFieldValue.php index 67f31e14..9341ce9d 100644 --- a/src/Type/WPObject/FormField/FieldValue/ValueProperty/ListFieldValue.php +++ b/src/Type/WPObject/FormField/FieldValue/ValueProperty/ListFieldValue.php @@ -7,6 +7,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField\FieldValue\ValueProperty; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/FormField/FieldValue/ValueProperty/NameFieldValue.php b/src/Type/WPObject/FormField/FieldValue/ValueProperty/NameFieldValue.php index 12b01922..89a3056a 100644 --- a/src/Type/WPObject/FormField/FieldValue/ValueProperty/NameFieldValue.php +++ b/src/Type/WPObject/FormField/FieldValue/ValueProperty/NameFieldValue.php @@ -7,6 +7,8 @@ * @since 0.5.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField\FieldValue\ValueProperty; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/FormField/FieldValue/ValueProperty/ProductFieldValue.php b/src/Type/WPObject/FormField/FieldValue/ValueProperty/ProductFieldValue.php index ef46b472..add70d29 100644 --- a/src/Type/WPObject/FormField/FieldValue/ValueProperty/ProductFieldValue.php +++ b/src/Type/WPObject/FormField/FieldValue/ValueProperty/ProductFieldValue.php @@ -7,6 +7,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField\FieldValue\ValueProperty; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/FormField/FieldValue/ValueProperty/TimeFieldValue.php b/src/Type/WPObject/FormField/FieldValue/ValueProperty/TimeFieldValue.php index 147e7c1f..26cc5d25 100644 --- a/src/Type/WPObject/FormField/FieldValue/ValueProperty/TimeFieldValue.php +++ b/src/Type/WPObject/FormField/FieldValue/ValueProperty/TimeFieldValue.php @@ -7,6 +7,8 @@ * @since 0.5.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField\FieldValue\ValueProperty; use WPGraphQL\GF\Type\Enum\AmPmEnum; diff --git a/src/Type/WPObject/FormField/FormFieldDataPolicy.php b/src/Type/WPObject/FormField/FormFieldDataPolicy.php index a488f0b7..63f8facf 100644 --- a/src/Type/WPObject/FormField/FormFieldDataPolicy.php +++ b/src/Type/WPObject/FormField/FormFieldDataPolicy.php @@ -6,6 +6,8 @@ * @since 0.10.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/FormField/FormFields.php b/src/Type/WPObject/FormField/FormFields.php index d6d51c72..b9907bc3 100644 --- a/src/Type/WPObject/FormField/FormFields.php +++ b/src/Type/WPObject/FormField/FormFields.php @@ -9,6 +9,8 @@ * @since 0.10.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\FormField; use GF_Fields; diff --git a/src/Type/WPObject/Order/OrderItem.php b/src/Type/WPObject/Order/OrderItem.php index dffb33cf..3a2e60eb 100644 --- a/src/Type/WPObject/Order/OrderItem.php +++ b/src/Type/WPObject/Order/OrderItem.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Order; use WPGraphQL\AppContext; diff --git a/src/Type/WPObject/Order/OrderItemOption.php b/src/Type/WPObject/Order/OrderItemOption.php index 95b33288..d6b175ae 100644 --- a/src/Type/WPObject/Order/OrderItemOption.php +++ b/src/Type/WPObject/Order/OrderItemOption.php @@ -6,6 +6,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Order; use WPGraphQL\AppContext; diff --git a/src/Type/WPObject/Order/OrderSummary.php b/src/Type/WPObject/Order/OrderSummary.php index 21594310..1de556de 100644 --- a/src/Type/WPObject/Order/OrderSummary.php +++ b/src/Type/WPObject/Order/OrderSummary.php @@ -8,6 +8,8 @@ * @since 0.12.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Order; use WPGraphQL\GF\Type\Enum\CurrencyEnum; diff --git a/src/Type/WPObject/Settings/Logger.php b/src/Type/WPObject/Settings/Logger.php index 153611cd..c402923b 100644 --- a/src/Type/WPObject/Settings/Logger.php +++ b/src/Type/WPObject/Settings/Logger.php @@ -6,6 +6,8 @@ * @since 0.10.2 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Settings; use WPGraphQL\GF\Type\WPObject\AbstractObject; diff --git a/src/Type/WPObject/Settings/Settings.php b/src/Type/WPObject/Settings/Settings.php index cd877949..8c61bd29 100644 --- a/src/Type/WPObject/Settings/Settings.php +++ b/src/Type/WPObject/Settings/Settings.php @@ -6,6 +6,8 @@ * @since 0.10.2 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Settings; use GFCommon; diff --git a/src/Type/WPObject/Settings/SettingsLogging.php b/src/Type/WPObject/Settings/SettingsLogging.php index 9426eb5e..dc3923f8 100644 --- a/src/Type/WPObject/Settings/SettingsLogging.php +++ b/src/Type/WPObject/Settings/SettingsLogging.php @@ -6,6 +6,8 @@ * @since 0.10.2 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Settings; use GFLogging; diff --git a/src/Type/WPObject/Settings/SettingsRecaptcha.php b/src/Type/WPObject/Settings/SettingsRecaptcha.php index e44943ed..148dfd46 100644 --- a/src/Type/WPObject/Settings/SettingsRecaptcha.php +++ b/src/Type/WPObject/Settings/SettingsRecaptcha.php @@ -6,6 +6,8 @@ * @since 0.11.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject\Settings; use WPGraphQL\GF\Type\Enum\RecaptchaTypeEnum; diff --git a/src/Type/WPObject/SubmissionConfirmation.php b/src/Type/WPObject/SubmissionConfirmation.php index dc513e02..b5ec6416 100644 --- a/src/Type/WPObject/SubmissionConfirmation.php +++ b/src/Type/WPObject/SubmissionConfirmation.php @@ -8,6 +8,8 @@ * @since 0.11.1 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Type\WPObject; use GraphQL\Type\Definition\ResolveInfo; diff --git a/src/UpdateChecker.php b/src/UpdateChecker.php index 6f327c0f..079f75b0 100644 --- a/src/UpdateChecker.php +++ b/src/UpdateChecker.php @@ -6,6 +6,8 @@ * @since 0.11.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF; use WPGraphQL\GF\Interfaces\Hookable; diff --git a/src/Utils/GFUtils.php b/src/Utils/GFUtils.php index 9183b911..4e296747 100644 --- a/src/Utils/GFUtils.php +++ b/src/Utils/GFUtils.php @@ -8,6 +8,8 @@ * @since 0.4.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Utils; use GFAPI; diff --git a/src/Utils/Utils.php b/src/Utils/Utils.php index 7f5b5012..01b1894a 100644 --- a/src/Utils/Utils.php +++ b/src/Utils/Utils.php @@ -8,6 +8,8 @@ * @since 0.2.0 */ +declare( strict_types = 1 ); + namespace WPGraphQL\GF\Utils; use GF_Fields; diff --git a/wp-graphql-gravity-forms.php b/wp-graphql-gravity-forms.php index 5e44e3b2..d31c4703 100644 --- a/wp-graphql-gravity-forms.php +++ b/wp-graphql-gravity-forms.php @@ -24,6 +24,8 @@ * @license GPL-3 */ +declare( strict_types = 1 ); + // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; From 71c28d0aa6c2d8035dd5288d213b10b8895db9b6 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 6 Apr 2024 12:12:50 +0000 Subject: [PATCH 2/8] fix: ensure $entry_id is `int` in GFUtils::update_entry() --- src/Utils/GFUtils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils/GFUtils.php b/src/Utils/GFUtils.php index 4e296747..7a814a14 100644 --- a/src/Utils/GFUtils.php +++ b/src/Utils/GFUtils.php @@ -198,14 +198,14 @@ public static function get_entry( int $entry_id ): array { * @throws \GraphQL\Error\UserError . */ public static function update_entry( array $entry_data, ?int $entry_id = null ): int { - $entry_id = $entry_id ?? $entry_data['id']; + $entry_id = $entry_id ?? (int) $entry_data['id']; $is_entry_updated = GFAPI::update_entry( $entry_data, $entry_id ); if ( $is_entry_updated instanceof \WP_Error ) { throw new UserError( // translators: Gravity Forms entry id. - sprintf( esc_html__( 'An error occured while trying to update the entry (ID: %s). Error: .', 'wp-graphql-gravity-forms' ), esc_html( $entry_data['id'] ) ) . esc_html( $is_entry_updated->get_error_message() ) + sprintf( esc_html__( 'An error occured while trying to update the entry (ID: %s). Error: .', 'wp-graphql-gravity-forms' ), esc_html( (string) $entry_data['id'] ) ) . esc_html( $is_entry_updated->get_error_message() ) ); } From b3e4f0b7bc7b6abc30ee039194b2e75c0b0e4de5 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 6 Apr 2024 12:22:02 +0000 Subject: [PATCH 3/8] fix: strict types --- src/Mutation/SubmitDraftEntry.php | 2 +- src/Mutation/SubmitForm.php | 2 +- src/Mutation/UpdateDraftEntry.php | 2 +- src/Mutation/UpdateEntry.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mutation/SubmitDraftEntry.php b/src/Mutation/SubmitDraftEntry.php index 18ebdd2a..4d820615 100644 --- a/src/Mutation/SubmitDraftEntry.php +++ b/src/Mutation/SubmitDraftEntry.php @@ -88,7 +88,7 @@ public static function mutate_and_get_payload(): callable { // Prepare the entry data. $submission = GFUtils::get_draft_submission( $resume_token ); - $form = GFUtils::get_form( $submission['partial_entry']['form_id'] ); + $form = GFUtils::get_form( (int) $submission['partial_entry']['form_id'] ); $submission['page_number'] = GFUtils::get_last_form_page( $form ); diff --git a/src/Mutation/SubmitForm.php b/src/Mutation/SubmitForm.php index 41165be4..4c11dd79 100644 --- a/src/Mutation/SubmitForm.php +++ b/src/Mutation/SubmitForm.php @@ -149,7 +149,7 @@ public static function mutate_and_get_payload(): callable { $input_values = self::get_input_values( $save_as_draft, $field_values, $files ); $submission = GFUtils::submit_form( - $input['id'], + (int) $input['id'], $input_values, $field_values, $target_page, diff --git a/src/Mutation/UpdateDraftEntry.php b/src/Mutation/UpdateDraftEntry.php index 34e1aed4..664a2cdb 100644 --- a/src/Mutation/UpdateDraftEntry.php +++ b/src/Mutation/UpdateDraftEntry.php @@ -109,7 +109,7 @@ public static function mutate_and_get_payload(): callable { // Prepare the entry data. $submission = GFUtils::get_draft_submission( $resume_token ); - $form = GFUtils::get_form( $submission['partial_entry']['form_id'] ); + $form = GFUtils::get_form( (int) $submission['partial_entry']['form_id'] ); $entry_data = self::prepare_draft_entry_data( $input, $submission, $form ); diff --git a/src/Mutation/UpdateEntry.php b/src/Mutation/UpdateEntry.php index 110c3bf7..7a48ad2c 100644 --- a/src/Mutation/UpdateEntry.php +++ b/src/Mutation/UpdateEntry.php @@ -112,7 +112,7 @@ public static function mutate_and_get_payload(): callable { } // Prepare the entry data. - $form = GFUtils::get_form( $entry['form_id'] ); + $form = GFUtils::get_form( (int) $entry['form_id'] ); $entry_data = self::prepare_entry_data( $input, $entry, $form ); From 7c13da7d283d4f8f2a4597435592654ae69f300b Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 6 Apr 2024 12:30:16 +0000 Subject: [PATCH 4/8] chore: lint types --- src/Data/EntryObjectMutation.php | 2 +- src/Mutation/UpdateEntry.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Data/EntryObjectMutation.php b/src/Data/EntryObjectMutation.php index 728d7888..5fc16ee4 100644 --- a/src/Data/EntryObjectMutation.php +++ b/src/Data/EntryObjectMutation.php @@ -154,7 +154,7 @@ public static function rename_field_names_for_submission( array $field_values ): $formatted = []; foreach ( $field_values as $key => $value ) { - $formatted[ 'input_' . str_replace( '.', '_', $key ) ] = $value; + $formatted[ 'input_' . str_replace( '.', '_', (string) $key ) ] = $value; } return $formatted; diff --git a/src/Mutation/UpdateEntry.php b/src/Mutation/UpdateEntry.php index 7a48ad2c..7d8d4034 100644 --- a/src/Mutation/UpdateEntry.php +++ b/src/Mutation/UpdateEntry.php @@ -227,7 +227,7 @@ private static function prepare_entry_data( array $input, array $entry, array $f array_column( $files, 'uploaded_filename' ) ); - $field_id = (int) str_replace( 'input_', '', $input_name ); + $field_id = (int) str_replace( 'input_', '', (string) $input_name ); $field = GFUtils::get_field_by_id( $form, $field_id ); @@ -280,8 +280,8 @@ public static function prepare_field_values_for_save( array $values, array $entr $entry = array_merge( $entry, $values ); foreach ( $values as $id => &$value ) { - $input_name = 'input_' . str_replace( '.', '_', $id ); - $field_id = strtok( $id, '.' ); + $input_name = 'input_' . str_replace( '.', '_', (string) $id ); + $field_id = strtok( (string) $id, '.' ); $field = GFUtils::get_field_by_id( $form, (int) $field_id ); // Post images can sometimes already be prepared. From 694d3a3e25500b21f41b5389681b4c225312d98b Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 6 Apr 2024 12:36:06 +0000 Subject: [PATCH 5/8] chore: lint types --- src/Model/Form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Form.php b/src/Model/Form.php index e43db48a..c0e5b95a 100644 --- a/src/Model/Form.php +++ b/src/Model/Form.php @@ -95,8 +95,8 @@ static function ( $confirmation ) { 'form' => fn (): array => $this->data, 'formFields' => fn (): ?array => ! empty( $this->data['fields'] ) ? $this->data['fields'] : null, 'id' => fn (): string => Relay::toGlobalId( FormsLoader::$name, $this->data['id'] ), - 'isActive' => fn (): bool => $this->data['is_active'] ?? true, - 'isTrash' => fn (): bool => $this->data['is_trash'] ?? false, + 'isActive' => fn (): bool => ! empty( $this->data['is_active'] ), + 'isTrash' => fn (): bool => ! empty( $this->data['is_trash'] ), 'labelPlacement' => fn (): ?string => $this->data['labelPlacement'] ?? null, 'login' => function (): array { return [ From 943e3c45f20b951aae921b8e9bbb9cbfc8009f76 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 6 Apr 2024 12:38:02 +0000 Subject: [PATCH 6/8] chore: lint types --- src/Model/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Form.php b/src/Model/Form.php index c0e5b95a..afe9433e 100644 --- a/src/Model/Form.php +++ b/src/Model/Form.php @@ -104,7 +104,7 @@ static function ( $confirmation ) { 'loginRequiredMessage' => ! empty( $this->data['requireLoginMessage'] ) ? $this->data['requireLoginMessage'] : null, ]; }, - 'markupVersion' => fn (): ?string => $this->data['markupVersion'] ?? null, + 'markupVersion' => fn (): ?string => (string) $this->data['markupVersion'] ?? null, 'notifications' => fn (): ?array => ! empty( $this->data['notifications'] ) ? $this->data['notifications'] : null, 'nextFieldId' => fn (): ?int => isset( $this->data['nextFieldId'] ) ? (int) $this->data['nextFieldId'] : null, 'pagination' => function (): ?array { From 0e948c7ea8741d1d4fdb77b0e5cb45ca77d2f128 Mon Sep 17 00:00:00 2001 From: David Levine Date: Mon, 13 May 2024 00:03:02 +0000 Subject: [PATCH 7/8] chore: update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f6d86d7..233725f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - chore!: Bump minimum WPGraphQL version to v1.26.0. - chore!: Bump minimum WordPress version to v6.0.0. - chore!: Bump minimum Gravity Forms version to v2.7.0. +- chore: Declare `strict_types` in all PHP files. - chore: Update Composer dev-dependencies and fix test compatibility with `wp-graphql-test-case` v3.0.x. ## v0.12.6.1 @@ -21,7 +22,6 @@ This _minor_ release adds explicit support for PHP 8.2 and WordPress 6.5 - inclu - feat: Add plugin dependency header. - chore: Update Composer deps and lint. - chore: Lock WPBrowser to <3.5.0 to prevent conflicts with Codeception. -- chore: Declare `strict_types` in all PHP files. - chore: Implement strict PHPStan rules and fix resulting issues. - chore: Add traversable type hints throughout the codebase. - tests: Lint tests. From c2aee5f8e20f90d21345503c52fda26c17053a1e Mon Sep 17 00:00:00 2001 From: David Levine Date: Mon, 13 May 2024 00:25:04 +0000 Subject: [PATCH 8/8] fix: strict type fatal errors --- src/Data/FieldValueInput/ValueInput.php | 2 +- src/Model/Form.php | 2 +- src/Type/WPObject/FormField/FieldValue/FieldValues.php | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Data/FieldValueInput/ValueInput.php b/src/Data/FieldValueInput/ValueInput.php index 89c49659..cd4acecf 100644 --- a/src/Data/FieldValueInput/ValueInput.php +++ b/src/Data/FieldValueInput/ValueInput.php @@ -32,7 +32,7 @@ protected function get_field_name(): string { /** * {@inheritDoc} */ - protected function prepare_value(): string { + protected function prepare_value() { // Handle choices with price. if ( ! empty( $this->field->enablePrice ) && false === strpos( $this->args, '|' ) ) { $value_key = ! empty( $this->field->enablePrice ) || ! empty( $this->field->enableChoiceValue ) ? 'value' : 'text'; diff --git a/src/Model/Form.php b/src/Model/Form.php index cccf968d..80910db5 100644 --- a/src/Model/Form.php +++ b/src/Model/Form.php @@ -104,7 +104,7 @@ static function ( $confirmation ) { 'loginRequiredMessage' => ! empty( $this->data['requireLoginMessage'] ) ? $this->data['requireLoginMessage'] : null, ]; }, - 'markupVersion' => fn (): ?string => (string) $this->data['markupVersion'] ?? null, + 'markupVersion' => fn (): ?string => isset( $this->data['markupVersion'] ) ? (string) $this->data['markupVersion'] : null, 'notifications' => fn (): ?array => ! empty( $this->data['notifications'] ) ? $this->data['notifications'] : null, 'nextFieldId' => fn (): ?int => isset( $this->data['nextFieldId'] ) ? (int) $this->data['nextFieldId'] : null, 'pagination' => function (): ?array { diff --git a/src/Type/WPObject/FormField/FieldValue/FieldValues.php b/src/Type/WPObject/FormField/FieldValue/FieldValues.php index 614aab56..0b5a7f2f 100644 --- a/src/Type/WPObject/FormField/FieldValue/FieldValues.php +++ b/src/Type/WPObject/FormField/FieldValue/FieldValues.php @@ -311,14 +311,14 @@ public static function product_values(): array { switch ( true ) { case $source instanceof \GF_Field_SingleProduct: case $source instanceof \GF_Field_HiddenProduct: - $product_name = trim( $context->gfEntry->entry[ $source->id . '.1' ] ?? '' ); - $price = trim( $context->gfEntry->entry[ $source->id . '.2' ] ?? '' ); - $quantity = trim( $context->gfEntry->entry[ $source->id . '.3' ] ?? '' ); + $product_name = isset( $context->gfEntry->entry[ $source->id . '.1' ] ) ? trim( (string) $context->gfEntry->entry[ $source->id . '.1' ] ) : ''; + $price = isset( $context->gfEntry->entry[ $source->id . '.2' ] ) ? trim( (string) $context->gfEntry->entry[ $source->id . '.2' ] ) : ''; + $quantity = isset( $context->gfEntry->entry[ $source->id . '.3' ] ) ? trim( (string) $context->gfEntry->entry[ $source->id . '.3' ] ) : ''; break; case $source instanceof \GF_Field_Calculation: - $product_name = trim( $context->gfEntry->entry[ $source->id . '.1' ] ?? '' ); + $product_name = isset( $context->gfEntry->entry[ $source->id . '.1' ] ) ? trim( (string) $context->gfEntry->entry[ $source->id . '.1' ] ) : ''; $price = GFCommon::calculate( $source, $context->gfForm->form, $context->gfEntry->entry ); - $quantity = trim( $context->gfEntry->entry[ $source->id . '.3' ] ?? '' ); + $quantity = isset( $context->gfEntry->entry[ $source->id . '.3' ] ) ? trim( (string) $context->gfEntry->entry[ $source->id . '.3' ] ) : ''; break; case $source instanceof \GF_Field_Select: