View Issue Details

IDProjectCategoryView StatusLast Update
0017827mantisbtemailpublic2014-12-05 18:33
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.17 
Target Version1.2.18Fixed in Version1.2.18 
Summary0017827: Disposable library triggers PHP STRICT warnings
Description

With display_errors set to E_ALL = inline or halt, the disposable library triggers PHP STRICT warnings:

"Non-static method should not be called statically"

Steps To Reproduce
  • Navigate to Manage User page
  • Update a user's e-mail address and submit

: Non-static method DisposableEmailChecker::is_disposable_email() should not be called statically
: Non-static method DisposableEmailChecker::is_forwarding_email() should not be called statically
: Non-static method DisposableEmailChecker::_get_domain_from_address() should not be called statically
: Non-static method DisposableEmailChecker::is_trash_email() should not be called statically
: Non-static method DisposableEmailChecker::_get_domain_from_address() should not be called statically
: Non-static method DisposableEmailChecker::is_time_bound_email() should not be called statically
: Non-static method DisposableEmailChecker::_get_domain_from_address() should not be called statically
: Non-static method DisposableEmailChecker::is_shredder_email() should not be called statically
: Non-static method DisposableEmailChecker::_get_domain_from_address() should not be called statically

Additional Information

This issue does not exist in Master branch, as it has been resolved by https://github.com/mantisbt/disposable_email_checker/commit/1418b9945e234c4cba3f1a0491826b0e7ded9f59

TagsNo tags attached.

Activities

dregad

dregad

2014-11-01 20:11

developer   ~0041740

Reminder sent to: vboctor

Do you think it's worth updating the disposable library in 1.2.x ? Either

  • set submodule like in master
  • manually patch to fix issue (i.e. add 'static' keyword to methods where needed)

Or considering that it's a minor issue only encountered with "non-prod" error settings, ignore this and close as won't fix ?

Let me know your thoughts.

vboctor

vboctor

2014-11-01 20:43

manager   ~0041741

I would do the minimal touch to 1.2.x to get it clean. This could be a localized fix (static), or normal update, but I wouldn't change to submodule. Since that complicates switching branches etc. We will get the submodule via master.

Related Changesets

MantisBT: master-1.2.x a551d7db

2014-12-03 13:36

dregad


Details Diff
Fix 0017827: PHP STRICT warnings in Disposable library Affected Issues
0017827
mod - library/disposable/disposable.php Diff File