Fixed
Project:
Date Timepicker
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
24 Mar 2026 at 13:04 UTC
Updated:
12 May 2026 at 18:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
danrodComment #3
jatin.buzz commentedWorking on It!
Comment #5
jatin.buzz commentedPlease review the MR!
These are some changes I have made
Added parameter and return type hints to hook wrappers and hook service methods.
Replace loose comparisons with strict comparisons where behavior is unchanged.
Update hook example return type in API documentation.
Comment #6
yusuf_khan commentedI've reviewed the Timepicker module and found the following PHPCS and PHP stan issues that need to be fixed:
vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml web/modules/contrib/timepicker-3581194/
FILE: /Users/ykhan/Documents/my-drupal-site/web/modules/contrib/timepicker-3581194/README.md
--------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------
70 | WARNING | Line exceeds 80 characters; contains 183 characters
80 | WARNING | Line exceeds 80 characters; contains 119 characters
83 | WARNING | Line exceeds 80 characters; contains 123 characters
--------------------------------------------------------------------------------------------
FILE: /Users/ykhan/Documents/my-drupal-site/web/modules/contrib/timepicker-3581194/timepicker.install
-----------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------
12 | ERROR | [x] Opening brace should be on the same line as the declaration
53 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
54 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
63 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: /Users/ykhan/Documents/my-drupal-site/web/modules/contrib/timepicker-3581194/timepicker.module
----------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------
22 | ERROR | [x] Opening brace should be on the same line as the declaration
33 | ERROR | [x] Opening brace should be on the same line as the declaration
46 | ERROR | [x] Opening brace should be on the same line as the declaration
57 | ERROR | [x] Opening brace should be on the same line as the declaration
73 | ERROR | [x] Opening brace should be on the same line as the declaration
84 | ERROR | [x] Opening brace should be on the same line as the declaration
115 | ERROR | [x] Opening brace should be on the same line as the declaration
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
Time: 191ms; Memory: 14MB
vendor/bin/phpstan analyze web/modules/contrib/timepicker-3581194 --memory-limit=1G
4/4 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ------------------------------------------------------------------------------------------------------------------
Line src/Hook/TimepickerHooks.php
------ ------------------------------------------------------------------------------------------------------------------
:39 No error to ignore is reported on line 39.
🪪 ignore.unmatchedLine (non-ignorable)
:41 Method Drupal\timepicker\Hook\TimepickerHooks::help() should return string|null but return statement is missing.
🪪 return.missing (non-ignorable)
:90 No error to ignore is reported on line 90.
🪪 ignore.unmatchedLine (non-ignorable)
:165 No error to ignore is reported on line 165.
🪪 ignore.unmatchedLine (non-ignorable)
:220 No error to ignore is reported on line 220.
🪪 ignore.unmatchedLine (non-ignorable)
:326 No error to ignore is reported on line 326.
🪪 ignore.unmatchedLine (non-ignorable)
------ ------------------------------------------------------------------------------------------------------------------
------ ---------------------------------------------
Line timepicker.module
------ ---------------------------------------------
:31 No error to ignore is reported on line 31.
🪪 ignore.unmatchedLine (non-ignorable)
:55 No error to ignore is reported on line 55.
🪪 ignore.unmatchedLine (non-ignorable)
:82 No error to ignore is reported on line 82.
🪪 ignore.unmatchedLine (non-ignorable)
:95 No error to ignore is reported on line 95.
🪪 ignore.unmatchedLine (non-ignorable)
:113 No error to ignore is reported on line 113.
🪪 ignore.unmatchedLine (non-ignorable)
------ ---------------------------------------------
[ERROR] Found 11 errors
Comment #7
danrodComment #8
yusuf_khan commented@danrod , Please check the attached Patch can fix the pipeline issues - PHPCS and PHPSTAN
Im not able to push or create a branch in the repo, please check the error below
You are not allowed to push code to this project.
Comment #9
yusuf_khan commentedComment #10
danrodHi @yusuf_khan , if you click on the "Get push access" button above, you'll be able to push code to this project. We are not using patches for our projects anymore.
Comment #11
danrodComment #13
jerech commentedComment #14
danrodI tested this and works as expected (I was able to pick the JS library and use it when creating/editing entities). I'm merging this, thanks a lot to everyone who worked on this !
Comment #15
danrodComment #17
danrodMerged with no issues, I'll create a new release.
Comment #19
danrodNew release: https://www.drupal.org/project/timepicker/releases/3.0.6