Skip to content

Instantly share code, notes, and snippets.

@RafaelKa
Created June 26, 2013 14:12
Show Gist options
  • Save RafaelKa/5867678 to your computer and use it in GitHub Desktop.
Save RafaelKa/5867678 to your computer and use it in GitHub Desktop.
NetBeans 7.2 OsX :: Problem by Inline autocompletion tool. NOTE: this snippet works in other Class file.
<?php
// ...
$partyFromRepository = $accountFromRepository->getParty();
if ($partyFromRepository instanceof \TYPO3\Party\Domain\Model\Person) {
/* @var $partyFromRepository \TYPO3\Party\Domain\Model\Person */
// $partyFromRepository-> // here does not work
foreach ($something as $partyFromRepository) {
// $partyFromRepository-> // here works
}
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment