Skip to content

Commit bebd9cc

Browse files
jehervetbradsha
andauthored
iCal Reader: remove debugging statement (#45671)
* iCal Reader: remove debugging statement Follow-up to #22336 Co-authored-by: tbradsha <[email protected]> * Update Phan config * Update Phan baseline --------- Co-authored-by: tbradsha <[email protected]> Co-authored-by: tbradsha <[email protected]>
1 parent c64f224 commit bebd9cc

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

projects/plugins/jetpack/.phan/baseline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
'_inc/lib/debugger/class-jetpack-debug-data.php' => ['PhanPossiblyUndeclaredVariable', 'PhanRedundantCondition', 'PhanTypeMismatchArgument'],
131131
'_inc/lib/debugger/class-jetpack-debugger.php' => ['PhanTypeMismatchArgumentProbablyReal'],
132132
'_inc/lib/debugger/debug-functions.php' => ['PhanTypeMismatchReturnProbablyReal'],
133-
'_inc/lib/icalendar-reader.php' => ['PhanPluginDuplicateConditionalNullCoalescing', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredVariable', 'PhanRedundantCondition', 'PhanTypeInvalidLeftOperandOfNumericOp', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchReturnProbablyReal', 'PhanTypePossiblyInvalidDimOffset'],
133+
'_inc/lib/icalendar-reader.php' => ['PhanPluginDuplicateConditionalNullCoalescing', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfNumericOp', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchReturnProbablyReal', 'PhanTypePossiblyInvalidDimOffset'],
134134
'_inc/lib/markdown/extra.php' => ['PhanImpossibleConditionInLoop', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchReturn'],
135135
'_inc/lib/plans.php' => ['PhanTypeMismatchReturn', 'PhanTypeMismatchReturnProbablyReal'],
136136
'_inc/lib/tonesque.php' => ['PhanRedefineClass', 'PhanRedefinedClassReference', 'PhanTypeMismatchArgument', 'PhanTypeMismatchArgumentProbablyReal'],

projects/plugins/jetpack/_inc/lib/icalendar-reader.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public function get_events( $url = '', $count = 5 ) {
7272
$transient_id = 'icalendar_vcal_' . md5( $url ) . '_' . $count;
7373

7474
$vcal = get_transient( $transient_id );
75-
$vcal = false;
7675
if ( ! empty( $vcal ) ) {
7776
if ( isset( $vcal['TIMEZONE'] ) ) {
7877
$this->timezone = $this->timezone_from_string( $vcal['TIMEZONE'] );
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: other
3+
4+
Calendar Reader: remove debugging statement added to bypass caching.

0 commit comments

Comments
 (0)