typhoon icon indicating copy to clipboard operation
typhoon copied to clipboard

Refactoring and improvements list

Open vudaltsov opened this issue 7 months ago • 0 comments

  • [ ] soft type warnings via logger
  • [x] add recursive replacer test that checks types are equal
  • [x] mark more constructors internal
  • [ ] extract simple from string type parser from phpstorm hook
  • [x] ~~__construct parameter type inheritance~~ (decided to keep inheriting)
  • [x] float range
  • [ ] TypeData to TypedMap
  • [ ] revert TypeData.annotatedInherited
  • [x] ~~add hooks for all ids (props, const, params, methods)~~ (bad idea, does not simplify code)
  • [x] hide InMemoryCache via recommended cache static constructor
  • [x] ~~locator priority?~~ (no need currently)
  • [x] context resolve column? revert commet endColumn, add a test
  • [ ] use namemap in Data for props and friends?
  • [ ] support PhpStormStubsElementAvailable, see other attributes
  • [ ] support native function overloading
  • [ ] implement getPrototype in method adapter
  • [x] skip symfony polyfills
  • [x] move Locators to API
  • [x] param enum byref/bybval/byany
  • [x] ~~expose Visibility and ClassKind enums~~ isXXX() (methods are more convenient)
  • [ ] Investigate https://github.com/typhoon-php/typhoon/actions/runs/10088320051/job/27893896538 ZMQContext, ZMQPoll fails
  • [ ] include dependencies' hash in cache keys
  • [ ] Refactor inner exceptions
  • [x] ~~Return Resource::$code?~~ (this will not allow to use code in hooks)
  • [x] class constant value type resolution (https://github.com/typhoon-php/typhoon/pull/60)
  • [x] prohibit serialization of Reflector, *Reflection
  • [ ] add visitors for aliases and class constant mask resolution
  • [ ] what location should be used for inherited elements?
  • [ ] Self, patent could be fully resolved when inherited.
  • [ ] resolve aliases when class is inherited to eliminate possible templates inside the type alias. does template inside alias make sense?
  • [ ] const $a, $b location, @var

vudaltsov avatar Jul 25 '24 01:07 vudaltsov